Thursday, October 8, 2020

CHECKING WHETHER THE SYSTEM IS STABLE OR NOT


 

% SURAJ BASTOLA %

% ==========CHECKING WHETHER SYSTEM IS STABLE OR NOT ==================

% H(z) = (2z+0.5)/(z^2+0.5z-1)

b = [2 0.5];

a=[1 0.5 -1];

sys = tf(b,a);

p = pole(sys);

z = zero(sys);

fprintf("Poles are = %d\n",p);

if(p<=1)

    fprintf("System is stable\n");

else

    fprintf("System is unstable\n");

end

fprintf("Zeros are = %d\n",z);

subplot(2,1,1)

impz(b,a)

subplot(2,1,2)

zplane(b,a)



No comments:

Post a Comment

CHECKING WHETHER THE SYSTEM IS STABLE OR NOT

  % SURAJ BASTOLA % % ==========CHECKING WHETHER SYSTEM IS STABLE OR NOT ================== % H(z) = (2z+0.5)/(z^2+0.5z-1) b = [2 0.5]; a=[1...