plot magnitude and phase versus frequency - Maple Help

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

DynamicSystems[BodePlot] - plot magnitude and phase versus frequency

 Calling Sequence BodePlot( sys, opts )

Parameters

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

Description

 • The BodePlot command plots the magnitude versus frequency and the phase versus frequency response of a System object, sys. By default, the BodePlot command returns an arrayplot which consists of the magnitudeplot and the phaseplot.
 • 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 BodePlot 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 BodePlot command takes all standard plot,options.

Examples

 > $\mathrm{with}\left(\mathrm{DynamicSystems}\right):$
 > $\mathrm{sys}:=\mathrm{TransferFunction}\left(\frac{1}{s-10}\right):$
 > $\mathrm{BodePlot}\left(\mathrm{sys}\right)$

 > $\mathrm{den}:=\left(s+1+I\cdot 10\right)\left(s+1-I\cdot 10\right):$
 > $\mathrm{sys}:=\mathrm{NewSystem}\left(⟨⟨\frac{s}{\mathrm{den}}|\frac{1}{s}⟩,⟨\frac{1}{\mathrm{den}}|\frac{1}{s-10}⟩⟩\right):$
 > $\mathrm{sys}:-\mathrm{tf}$
 $\left[\begin{array}{cc}\frac{{s}}{{{s}}^{{2}}{+}{2}{}{s}{+}{101}}& \frac{{1}}{{s}}\\ \frac{{1}}{{{s}}^{{2}}{+}{2}{}{s}{+}{101}}& \frac{{1}}{{s}{-}{10}}\end{array}\right]$ (1)

Plot the two subsystems on the matrix diagonal.  This is the command to create the plot from the Plotting Guide.

 > $\mathrm{BodePlot}\left(\mathrm{sys},\mathrm{subsystem}=\left[\left[1,1\right],\left[2,2\right]\right]\right)$

 >