Академический Документы
Профессиональный Документы
Культура Документы
B(Z) = bo +b1z-1
C(Z) = Co + C1z-1
u = idinput(1000,'rbs'); % input
th0 = idpoly([1 0.5 0.6],[1 0.7],[1 0.8]); % a low order idpoly model
e = sqrt(0.25)*randn(1000,1); % noise
y = sim(th0,[u e]); z = iddata(y,u);
[thm yhat p] = rplr(z,[2 1 1 0 0 1],'ff',1,[0;0;0;0],[1000 0 0 0;0 1000 0 0;0
0 1000 0; 0 0 0 1000]);
plot(thm)
hold on
plot(ones(1000,1)*[0.5 0.6 0.8 0.7],'--','linewidth',1)% nominal value for
comparision
title('Estimated parameters and nominal values')
title('Estimated parameters (solid) and nominal values (dashed)')