User`s guide

Table Of Contents
impulse
11-95
As with bode or plot, you can specify a particular color, linestyle, and/or
marker for each system, for example,
impulse(sys1,'y:',sys2,'g--')
See “Plotting and Comparing Multiple Systems” on page 5-13 and the bode
entry in this chapter for more details.
Wheninvokedwithlefthandarguments,
[y,t] = impulse(sys)
[y,t,x] = impulse(sys) % for state-space models only
y = impulse(sys,t)
return the output response y, the time vector t used for simulation, and the
state trajectories
x (for state-space models only). No plot is drawn on the
screen. For single-input systems,
y hasasmanyrowsastimesamples(length
of
t), and as many columns as outputs. In the multi-input ca se, the impulse
responses of each input channel a re stacked up along the third dimension of
y.
The dimensions of
y are then
and
y(:,:,j) gives the response to an impulse disturbance entering the jth
input channel. Similarly , the dimensions of
x are
Example To plot the impulse response of the second-order state-space model
length of
t()
number of outputs
()
number of inputs
()××
length of
t()
number of states
()
number of inputs
()××
x
·
1
x
·
2
0.5572 0.7814
0.7814 0
x
1
x
2
11
02
u
1
u
2
+=
y
1.9691 6.4493
x
1
x
2
=