www.pudn.com > controlsystem.ZIP > EX3012.M


% Example 3.12 
% 
a=[-1.6,-0.9,0,0; 0.9,0,0,0 
 0.4,0.5,-5.0,-2.45; 0,0,2.45,0]; 
b=[1;0;1;0]; 
c=[1,1,1,1]; 
d=[0]; 
figure(1) 
subplot(2,2,1) 
step(a,b,c,d) 
title('Step Response') 
subplot(2,2,2) 
impulse(a,b,c,d) 
title('Impulse Response') 
subplot(2,2,3) 
x0=[1;1;1;-1]; 
initial(a,b,c,d,x0) 
axis([0 6 -0.5 2.5]) 
title('Initial Response') 
subplot(2,2,4) 
pzmap(a,b,c,d) 
title('Pole-Zero Map')