impulse
Impulse response plot of dynamic system; impulse response data
Syntax
Description
[
specifies additional options for computing the impulse response, such as the amplitude or
input offset. Use y,tOut] = impulse(___,config)RespConfig to create the option set
config.
impulse(___) plots the impulse response of
sys with default plotting options for all of the previous input
argument combinations. For more plot customization options, use impulseplot.
To plot responses for multiple dynamic systems on the same plot, you can specify
sysas a comma-separated list of models. For example,impulse(sys1,sys2,sys3)plots the responses for three models on the same plot.To specify a color, line style, and marker for each system in the plot, specify a
LineSpecvalue for each system. For example,impulse(sys1,LineSpec1,sys2,LineSpec2)plots two models and specifies their plot style. For more information on specifying aLineSpecvalue, seeimpulseplot.
Examples
Input Arguments
Output Arguments
Limitations
The impulse response of a continuous system with nonzero D matrix is infinite at t = 0.
impulseignores this discontinuity and returns the lower continuity value Cb at t = 0.The
impulsecommand does not work on continuous-time models with internal delays. For such models, usepade(Control System Toolbox) to approximate the time delay before computing the impulse response.The
impulsecommand does not support simulation along an implicit parameter trajectory for continuous-time LPV models.
Tips
To simulate system responses to arbitrary input signals, use
lsim.When you need additional plot customization options, use
impulseplotinstead.Plots created using
impulsedo not support multiline titles or labels specified as string arrays or cell arrays of character vectors. To specify multiline titles and labels, use a single string with anewlinecharacter.impulse(sys) title("first line" + newline + "second line");
Algorithms
Continuous-time LTI models are first converted to state-space form. The impulse response of a single-input state-space model
is equivalent to the following unforced response with initial state b.
To simulate this response, the system is discretized using zero-order hold on the inputs.
The sample time is chosen automatically based on the system dynamics, except when a time
vector t = T0:dt:Tf is supplied. Hence, dt is used as
sample time.
Version History
Introduced before R2006aSee Also
Linear System Analyzer (Control System Toolbox) | step | lsim | impulseest | pade (Control System Toolbox) | impulseplot















