Specifications

Table Of Contents
impulse
16-96
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 and the bode entry in this
chapter for more details.
When invoked with lefthand arguments,
[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 case, the impulse
responses of each input channel are 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
use the following commands.
a = [-0.5572 -0.7814;0.7814 0];
b = [1 -1;0 2];
c = [1.9691 6.4493];
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
=