impulseplot
Plot impulse response of dynamic system
Syntax
Description
The impulseplot function plots the impulse response of a
dynamic system
model. To customize the plot,
you can return an ImpulsePlot object and modify it using dot notation. For
more information, see Customize Linear Analysis Plots at Command Line.
To obtain impulse response data or create an impulse plot with default plotting options,
use the impulse function.
impulseplot( plots the impulse response
of the dynamic system model sys)sys.
If sys is a multi-input, multi-output (MIMO) model, then the
impulseplot function creates a grid of plots with each plot displaying
the impulse response of one input-output pair.
If sys is a model with
complex coefficients, then the plot shows both the real and imaginary components of the
response on a single axes and indicates the imaginary component with a diamond marker. You
can also view the response using magnitude-phase and complex-plane plots. (since R2025a)
impulseplot(___, simulates the
response for the time steps specified by t)t. You can use
t with any of the input argument combinations in previous syntaxes.
To define the time steps, you can specify:
Final simulation time using a scalar value.
The initial and final simulation times using a two-element vector. (since R2023b)
All the time steps using a vector.
impulseplot(___,
specifies additional options for computing the step response, such as the step amplitude
(dU) or input offset (U). Use config)RespConfig to create config.
impulseplot(___,
plots the impulse response with the plotting options specified in
plotoptions)plotoptions. Settings you specify in
plotoptions override the plotting preferences for the current
MATLAB® session. This syntax is useful when you want to write a script to generate
multiple plots that look the same regardless of the local preferences.
impulseplot(___,
specifies response properties using one or more name-value arguments. For example,
Name=Value)impulseplot(sys,LineWidth=1) sets the plot line width to 1. (since R2026a)
When plotting responses for multiple systems, the specified name-value arguments apply to all responses.
The following name-value arguments override values specified in other input arguments.
TimeSpec— Overrides time values specified usingtConfig— Overrides options specified usingconfigParameter— Overrides parameter values specified usingpColor— Overrides colors specified usingLineSpecMarkerStyle— Overrides marker styles specified usingLineSpecLineStyle— Overrides line styles specified usingLineSpec
plots the
impulse response and returns the corresponding chart object. To customize the appearance
and behavior of the response plot, modify the chart object properties using dot
notation.ip = impulseplot(___)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced before R2006aSee Also
impulse | addResponse | showConfidence (System Identification Toolbox)








