plot magnitude versus frequency - Maple Help

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

DynamicSystems[MagnitudePlot] - plot magnitude versus frequency

 Calling Sequence MagnitudePlot(sys, opts)

Parameters

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

Description

 • The MagnitudePlot command plots magnitude versus frequency of the transfer-function of subsystems of sys, a System object.
 • If sys is a continuous system, its s-domain transfer function is computed and then converted to the real frequency domain using the transformation s -> I*omega, where omega is the angular frequency.
 • If sys is a discrete system, its z-domain transfer function is computed and then converted to the real frequency domain using the transformation z -> exp(I*omega*Ts), where omega is the angular frequency and Ts is the sample time.
 • The MagnitudePlot command uses the plot option axis to assign a logarithmic scale to an axis. This feature does not work with the default plot driver used in the Classic Worksheet interface. To use this feature in the Classic worksheet interface, or with command-line Maple, use $\mathrm{plotsetup}\left(\mathrm{maplet}\right)$. For details, see plot,device.
 • The MagnitudePlot command takes all standard plot,options.

Examples

 > $\mathrm{with}\left(\mathrm{DynamicSystems}\right):$
 > $\mathrm{sys}:=\mathrm{ZeroPoleGain}\left(\left[0,1\right],\left[2,4,6\right],1\right):$
 > $\mathrm{MagnitudePlot}\left(\mathrm{sys}\right)$

The commands to create the plot from the Plotting Guide are

 > $\mathrm{sys}:=\mathrm{NewSystem}\left(\left[\frac{{ⅆ}^{2}}{ⅆ{t}^{2}}x\left(t\right)=x\left(t\right)+u\left(t\right),y\left(t\right)=3x\left(t\right)+u\left(t\right)\right],u,\left[x,y\right]\right)$
 ${\mathrm{sys}}{:=}\left[\begin{array}{c}{\mathbf{Diff. Equation}}\\ {\mathrm{continuous}}\\ {\mathrm{2 output\left(s\right); 1 input\left(s\right)}}\\ {\mathrm{inputvariable}}{=}\left[{u}{}\left({t}\right)\right]\\ {\mathrm{outputvariable}}{=}\left[{x}{}\left({t}\right){,}{y}{}\left({t}\right)\right]\end{array}\right$ (1)
 > $\mathrm{sys}:-\mathrm{de}$
 $\left[\frac{{{ⅆ}}^{{2}}}{{ⅆ}{{t}}^{{2}}}{}{x}{}\left({t}\right){=}{x}{}\left({t}\right){+}{u}{}\left({t}\right){,}{y}{}\left({t}\right){=}{3}{}{x}{}\left({t}\right){+}{u}{}\left({t}\right)\right]$ (2)
 > $\mathrm{MagnitudePlot}\left(\mathrm{sys},\mathrm{color}=\left[\mathrm{blue},\mathrm{green}\right],\mathrm{title}="System Responses"\right)$