ImpulseResponsePlot - Maple Help

DynamicSystems

 ImpulseResponsePlot
 plot the impulse response of a system

 Calling Sequence ImpulseResponsePlot( sys, duration, opts )

Parameters

 sys - System; system object to plot duration - realcons opts - (optional) equation(s) of the form option = value; specify options for the ImpulseResponsePlot command

Options

 • 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, $\left[1,2\right]$ 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] ].

Description

 • 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.

Examples

 > $\mathrm{with}\left(\mathrm{DynamicSystems}\right):$
 > $\mathrm{sys1}≔\mathrm{TransferFunction}\left(\frac{s\left(s-1\right)}{\left(s+2\right)\left(s+4\right)\left(s+6\right)}\right):$
 > $\mathrm{ImpulseResponsePlot}\left(\mathrm{sys1},3\right)$

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.

 > $\mathrm{sys2}≔\mathrm{ToDiscrete}\left(\mathrm{sys1},\frac{1}{20},\mathrm{method}=\mathrm{zoh}\right):$
 > $\mathrm{ImpulseResponsePlot}\left(\mathrm{sys2},3,\mathrm{color}=\mathrm{blue}\right)$