Control System Toolbox Previous page   Next Page
setoptions

Set plot options for response plots

Syntax

Description

setoptions(h, PlotOpts) sets preferences for response plot using the plot handle. h is the plot handle, PlotOpts is a plot options handle containing information about plot options.

There are two ways to create a plot options handle:

setoptions(h, 'Property1', 'value1', ...) assigns values to property pairs instead of using PlotOpts. To find out what properties and values are available, type help <function>options. For example, for Bode plots type

setoptions(h, PlotOpts, 'Property1', 'value1', ...) first assigns plot properties as defined in @PlotOptions, and then overrides any properties governed by the specified property/value pairs.

Examples

To change frequency units, first create a Bode plot.

Now, change the frequency units from rad/s to Hz.

To change the frequency units using property/value pairs, use this code.

The result is the same as the first example.

See Also
getoptions  Get a plot options handle


Previous page  set sgrid Next page

© 1994-2005 The MathWorks, Inc.