| Control System Toolbox | ![]() |
Compute the impulse response and return the plot handle
Syntax
h = impulseplot(sys) h = impulseplot(sys,Tfinal) h =impulseplot(sys,t)h =impulseplot(sys1,sys2,...,t)h = impulseplot(AX,...) h = impulseplot(..., plotoptions)
Description
h = impulseplot(sys) plots the impulse response of the LTI model sys (created with either tf, zpk, or ss). For multiinput models, independent impulse commands are applied to each input channel. The time range and number of points are chosen automatically. For continuous systems with direct feedthrough, the infinite pulse at t=0 is disregarded. impulseplot also returns the plot handle, h. You can use this handle to customize the plot with the getoptions and setoptions commands. Type
for a list of available plot options.
impulseplot(sys) plots the impulse response of the LTI model without returning the plot handle.
impulseplot(sys,Tfinal) simulates the impulse response from t=0 to the final time t=Tfinal. For discrete-time systems with unspecified sampling time, Tfinal is interpreted as the number of samples.
impulseplot(sys,t) uses the user-supplied time vector t for simulation. For discrete-time models, t should be of the form Ti:Ts:Tf, where Ts is the sample time. For continuous-time models, t should be of the form Ti:dt:Tf, where dt becomes the sample time of a discrete approximation to the continuous system. The impulse is always assumed to arise at t=0 (regardless of Ti).
impulseplot(sys1,sys2,...,t) plots the impulse response of multiple LTI models sys1,sys2,... on a single plot. The time vector t is optional. You can also specify a color, line style, and marker for each system, as in
impulseplot(AX,...) plots into the axes with handle AX.
impulseplot(..., plotoptions) plots the impulse response with the options specified in plotoptions. Type
Example
Normalize the impulse response of a third-order system.
See Also
getoptions Get plot options
impulse Plot impulse responses
setoptions Set plot options
| impulse | initial | ![]() |
© 1994-2005 The MathWorks, Inc.