image thumbnail

Step and impulse responses under the effect of noise or uncertainty

by

 

This file demonstrates how the responses of a system change, for small fluctuations of ω and j.

robust1c.m
num=1;
den=[1 1.4 1];
disp('The initial transfer function is:')
sys=tf(num,den)
eig(sys)
figure(1)
step(sys,'*')
figure(2)
impulse(sys,'*')
pause
disp('We will see the changes in the responses for +-50% changes in the values')
disp('of w and j')
for i=1:15
 %Generate values from the uniform distribution on the interval [a, b]:
 %r = a + (b-a)*rand;
 %For the interval [1.7 2.1]  
  r1=0.7+1.4*rand;
 %For the interval [0.5 1.5] 
  r2=0.5+rand;
  den=[1 r1 r2];
  sys=tf(r2,den);
  pause
  disp('*********************************************')
  disp('The transfer function is')
  sys
  disp('With poles:')
  eig(sys)
    figure(1)
    hold all
    step(sys)
    figure(2)
    hold all
    impulse(sys)
end

Contact us