0% found this document useful (0 votes)
42 views2 pages

Bode Plot Customization Options in MATLAB

The bodeoptions function returns a list of options for customizing Bode plots. This includes options for labels, axes limits, grouping of inputs/outputs, visibility, units, and scales. The options allow setting properties like the title, frequency scale, magnitude units, and whether to enable features like phase wrapping or matching.

Uploaded by

29377
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views2 pages

Bode Plot Customization Options in MATLAB

The bodeoptions function returns a list of options for customizing Bode plots. This includes options for labels, axes limits, grouping of inputs/outputs, visibility, units, and scales. The options allow setting properties like the title, frequency scale, magnitude units, and whether to enable features like phase wrapping or matching.

Uploaded by

29377
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

bodeoptions -Create list of Bode plot options

Syntax
P = bodeoptions
P = bodeoptions('cstprefs')
Description
P = bodeoptions returns a list of available options for Bode plots with default values set. You can
use these options to customize the Bode plot appearance using the command line.
P = bodeoptions('cstprefs') initializes the plot options with the options you selected in the
Control System Toolbox Preferences Editor. For more information about the editor, see Toolbox
Preferences Editor in the User's Guide documentation.

The following table summarizes the Bode plot options.

Option Description

Title, XLabel, YLabel Label text and style

TickLabel Tick label style

Grid Show or hide the grid


Specified as one of the following strings: 'off' | 'on'
Default: 'off'

XlimMode, YlimMode Limit modes

Xlim, Ylim Axes limits

IOGrouping Grouping of input-output pairs


Specified as one of the following
strings: 'none' |'inputs'|'output'|'all'
Default: 'none'

InputLabels, OutputLabels Input and output label styles

InputVisible, OutputVisible Visibility of input and output channels

ConfidenceRegionNumberSD
Number of standard deviations to use to plotting the response
confidence region (identified models only).

Default: 1.

FreqUnits
Frequency units, specified as one of the following strings:

 'Hz'
 'rad/second'
 'rpm'
 'kHz'
 'MHz'
 'GHz'
 'rad/nanosecond'
 'rad/microsecond'
 'rad/millisecond'
 'rad/minute'
 'rad/hour'
 'rad/day'
 'rad/week'
 'rad/month'
Option Description

 'rad/year'
 'cycles/nanosecond'
 'cycles/microsecond'
 'cycles/millisecond'
 'cycles/hour'
 'cycles/day'
 'cycles/week'
 'cycles/month'
 'cycles/year'
Default: 'rad/s'
You can also specify 'auto' which uses frequency
units rad/TimeUnit relative to system time units specified in
the TimeUnit property. For multiple systems with different time units,
the units of the first system are used.

FreqScale Frequency scale


Specified as one of the following strings: 'linear' | 'log'
Default: 'log'

MagUnits Magnitude units


Specified as one of the following strings: 'dB' | 'abs'
Default: 'dB'

MagScale Magnitude scale


Specified as one of the following strings: 'linear' | 'log'
Default: 'linear'

MagVisible Magnitude plot visibility


Specified as one of the following strings: 'on' | 'off'
Default: 'on'

MagLowerLimMode Enables a lower magnitude limit


Specified as one of the following strings: 'auto' | 'manual'
Default: 'auto'

MagLowerLim Specifies the lower magnitude limit

PhaseUnits Phase units


Specified as one of the following strings: 'deg' | 'rad'
Default: 'deg'

PhaseVisible Phase plot visibility


Specified as one of the following strings: 'on' | 'off'
Default: 'on'

PhaseWrapping Enables phase wrapping


Specified as one of the following strings: 'on' | 'off'
Default: 'off'

PhaseMatching Enables phase matching


Specified as one of the following strings: 'on' | 'off'
Default: 'off'

PhaseMatchingFreq Frequency for matching phase

PhaseMatchingValue The value to which phase responses are matched closely

You might also like