diskmarginoptions
Description
returns the default
option set for plots you generate with opts
= diskmarginoptionsdiskmarginplot
and wcdiskmarginplot
. You can then use dot notation to change option values. Use
opts
to customize the plot appearance.
initializes the plot options with the options you have specified in the Control System Toolbox™ Preferences Editor. For more information about the editor, see Specify Toolbox Preferences for Linear Analysis Plots. opts
= diskmarginoptions('cstprefs')
Examples
Disk Margin Plot with Customized Appearance
Plot the disk margins as a function of frequency of a system with the following open-loop response.
L = tf(25,[1 10 10 10]);
For the plot, specify the following attributes:
Frequency units: Hz
Gain margins on a log scale, in absolute units
Grid on
opts = diskmarginoptions; opts.FreqUnits = 'Hz'; opts.MagScale = 'log'; opts.MagUnits = 'abs'; opts.grid = 'on'; diskmarginplot(L,opts)
Worst-Case Disk Margin Plot with Customized Appearance
Plot the worst-case disk margins as a function of frequency of a system with the following open-loop response.
a = ureal('a',10,'PlusMinus',[-4,4]); L = tf(25,[1 a a a]);
For the plot, use the default preferences specified in your Control System Toolbox™ preference, except specify the following attributes:
Frequency units: Hz
Gain margins on a log scale, in absolute units
Grid on
opts = diskmarginoptions('cstprefs'); opts.FreqUnits = 'Hz'; opts.MagScale = 'log'; opts.MagUnits = 'abs'; opts.grid = 'on'; w = {2*pi*1e-3,2*pi*10}; % rad/s wcdiskmarginplot(L,w,opts)
The plot you obtain might differ in appearance, depending on your current Control System Toolbox preference settings. (See Specify Toolbox Preferences for Linear Analysis Plots.)
Output Arguments
opts
— Options for disk margin plot
diskmarginplot
options set
Options for disk-margin plots of dynamic systems, returned as a
diskmarginplot
options set. Initialize the value of
opts
with either default options or the values specified in the
Control System Toolbox preferences editor. Customize the option values using dot
notation. Then, use opts
with diskmarginplot
or wcdiskmarginplot
to customize plots of the disk-based stability
margins of dynamic systems. The following table lists the available options.
Option | Description |
---|---|
FreqUnits | Frequency units, specified as one of the following:
|
FreqScale | Frequency scale, specified as:
|
MagUnits | Units of gain margin, specified as:
|
MagScale | Scale of gain-margin plot, specified as:
|
PhaseUnits | Units of phase margin, specified as:
|
Title , XLabel ,
YLabel | Title and axis label text and style, specified as a structure with the following fields:
|
TickLabel | Tick label style, specified as a structure with the following fields:
|
Grid | Show or hide the grid, specified as:
|
GridColor | Color of grid lines, specified as a vector of RGB values in the range
|
XlimMode , YlimMode | Selection mode for axis limits, specified as:
|
Xlim , Ylim | Axis limits, specified as a two-element vector of the form
|
Version History
Introduced in R2020a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)