Page 198 - MATLAB an introduction with applications
P. 198

Control Systems ———  183


                       >> C= [1 0];
                       >> D= [0];
                       >> impulse (A, B, C, D)








                                                         Impulse Response
                                       1.5



                                        1


                                       0.5
                                      Amplitude


                                        0



                                     – 0.5



                                       –1
                                         0      2       4      6       8      10      12
                                                            Time (sec)

                                               Fig. E3.29(c) Unit-impulse response


                   Example E3.30:  Obtain the unit-step response and unit-ramp response of the following system using
                   MATLAB.
                                   x    1   −   5 − 30 −   x 1   1
                                                   5 
                                   x      =    1  0  0      
                                                         +
                                                      x
                                                           0 u
                                    2                
                                                       2
                                                           0
                                                    
                                                      x
                                                     
                                   x    3      0  1  0     
                                                       3
                                                  x 
                                                  1
                                                
                                                ]
                                    y =  [020 5 x   + [0]u
                                                  2
                                                
                                                 x 
                                                
                                                  3
                   Solution:
                       >> % MATLAB Program
                       >> A=[–5 –30 –5; 1 0 0; 0 1 0];
                   F:\Final Book\Sanjay\IIIrd Printout\Dt. 10-03-09
   193   194   195   196   197   198   199   200   201   202   203