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 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.

This table summarizes the Bode plot options.

Option Description
Title, XLabel, YLabel Label text and style
TickLabelTick label style
Grid [off|on]Show or hide the grid
XlimMode, YlimModeLimit modes
Xlim, Ylim Axes limits
IOGrouping [none|inputs|output|all]Grouping of input-output pairs
InputLabels, OutputLabels Input and output label styles
InputVisible, OutputVisibleVisibility of input and output channels
FreqUnits [Hz|rad/s] Frequency units
FreqScale [linear|log]Frequency scale
MagUnits [dB|abs]Magnitude units
MagScale [linear|log]Magnitude scale
MagVisible [on|off]Magnitude plot visibility
MagLowerLimMode [auto|manual]Enables a lower magnitude limit
MagLowerLimSpecifies the lower magnitude limit
PhaseUnits [deg|rad]Phase units
PhaseVisible [on|off]Phase plot visibility
PhaseWrapping [on|off]Enables phase wrapping
PhaseMatching [on|off]Enables phase matching
PhaseMatchingFreqFrequency for matching phase
PhaseMatchingValue The value to which phase responses are matched closely

Examples

In this example, set phase visibility and frequency units in the Bode plot options.

P = bodeoptions; % Set phase visiblity to off and frequency units to Hz in options
P.PhaseVisible = 'off';
P.FreqUnits = 'Hz'; % Create plot with the options specified by P
h = bodeplot(tf(1,[1,1]),P);    

The following plot is created, with the phase plot visibility turned off and the frequency units in Hz.

See Also

bode, bodeplot, getoptions, setoptions

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS