DynamicSystems
ImpulseResponsePlot
plot the impulse response of a system
Calling Sequence
Parameters
Options
Description
Examples
ImpulseResponsePlot( sys, duration, opts )
sys
-
System; system object to plot
duration
realcons
opts
(optional) equation(s) of the form option = value; specify options for the ImpulseResponsePlot command
In addition to the following options, the ImpulseResponsePlot command takes many of the standard plot options; see plot,options.
parameters = set(name = complexcons) or list(name = complexcons)
Specifies numeric values for parameters in sys. These values override those specified by the parameters field of the system object, which in turn override the settings in in SystemOptions(parameters). The numeric value on the right-hand side of each equation is substituted for the name on the left-hand side in the expressions that define the model. No checking is done during the substitution to determine whether the substituted value is valid. For example, a complex value can be substituted for the coefficient of a polynomial. If the complex value had been originally assigned to the model at creation, a warning would be generated.
subsystem = [ posint, posint ] or list of same
Selects subsystems of a multi-input/multi-output system. Each selected subsystem is specified as a list of two indices: the first specifies the output and the second specifies the input. For example, 1,2 specifies the subsystem from the second input to the first output. A list of lists selects multiple subsystems. The default setting is to select all subsystems, using Fortran ordering. That is, for an m x n system, the default list of subsystems is [ [1,1], ..., [m,1], ..., [1,n], ..., [m,n] ].
The ImpulseResponsePlot command plots the impulse response of selected subsystems of sys, a System object.
The second parameter, duration, specifies the time interval to plot. The impulse response is plotted for time starting at zero to duration. If sys is a discrete system, then the number of discrete intervals in the interval depends on sys:-sampletime.
For a continuous system, the command DynamicSystems[ImpulseResponse] is used to compute the impulse response of the system.
For a discrete system, the command DynamicSystems[ResponsePlot] is used to generate the impulse response plot.
The ImpulseResponsePlot command takes all standard plot,options.
with⁡DynamicSystems:
sys1≔TransferFunction⁡s⁢s−1s+2⁢s+4⁢s+6:
ImpulseResponsePlot⁡sys1,3
Convert sys1 to a discrete representation, using a sampletime of 1/20 second. These are the commands to create the plot from the Plotting Guide.
sys2≔ToDiscrete⁡sys1,120,method=zoh:
ImpulseResponsePlot⁡sys2,3,color=blue
See Also
DynamicSystems[ImpulseResponse]
DynamicSystems[ResponsePlot]
DynamicSystems[SystemObject]
Download Help Document