% % Example 8.5 and Figure 8.1 % A=[-1 0 0; 0 -2 0; 0 0 -3]; B=[1;1;1]; C=[6 -6 1]; D=0 [y,x,t]=step(A,B,C,D); plot(t,x) xlabel('time [s]') ylabel('state step response') grid text(2.2,0.28,'x3') text(2.2,0.46,'x2') text(2.2,0.85,'x1') print -deps fig8_1.eps