plot the impulse response of a system - Maple Help

Home : Support : Online Help : Science and Engineering : Dynamic Systems : Plotting and Graphical Tools : DynamicSystems/ImpulseResponsePlot

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

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)$