Вы находитесь на странице: 1из 2

Consider a second order system auto regressive moving average

(ARMA) where the polynomial are in the following general form

A(z) = 1+az-1 + a2z-2

B(Z) = bo +b1z-1

C(Z) = Co + C1z-1

a. Choose the polynomial coefficients so that the system is stable?


coefficient A , a1 = 0.5 ,a2 = 0.6
B , b0 = 1 ,b1 = 0.7
C , c0 = 1 ,c1 = 0.8

%========================== Three parameter ========================

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)')

Вам также может понравиться