Control System Toolbox Previous page   Next Page
bodeplot

Compute the Bode frequency response and return the plot handle

Syntax

Description

h = bodeplot(sys) plot the Bode magnitude and phase of an LTI model sys and returns the plot handle h to the plot. You can use this handle to customize the plot with the getoptions and setoptions commands. Type

for a list of available plot options.

bodeplot(sys) draws the Bode plot of the LTI model sys (created with either tf, zpk, ss, or frd). The frequency range and number of points are chosen automatically.

bodeplot(sys1,sys2,...) graphs the Bode response of multiple LTI models sys1,sys2,... on a single plot. You can specify a color, line style, and marker for each model, as in

bodeplot(AX,...) plots into the axes with handle AX.

bodeplot(..., plotoptions) plots the Bode response with the options specified in plotoptions.

bodeplot(sys,w) draws the Bode plot for frequencies specified by w. When w = {wmin,wmax}, the Bode plot is drawn for frequencies between wmin and wmax (in rad/s). When w is a user-supplied vector w of frequencies, in rad/s, the Bode response is drawn for the specified frequencies.

See logspace to generate logarithmically spaced frequency vectors.

Example

Use the plot handle to change options in a Bode plot.

See Also
bode        Bode plots (does not return the plot handle)

getoptions  Get plot options from a plot

setoptions  Set plot options


Previous page  bodemag c2d Next page

© 1994-2005 The MathWorks, Inc.