spectrumoptions
Option set for spectrumplot
Description
creates
the default option set for opt
= spectrumoptionsspectrumplot
. Use
dot notation to customize the option set, if needed.
initializes
the plot options with the System Identification Toolbox™ preferences.
Use this syntax to change a few plot options but otherwise use your
toolbox preferences.opt
= spectrumoptions('identpref')
Examples
Specify Options for Spectrum Plot
Specify the plot options.
plot_options = spectrumoptions; plot_options.FreqUnits = 'Hz'; plot_options.FreqScale = 'linear'; plot_options.Xlim = {[0 20]}; plot_options.MagUnits = 'abs';
Estimate an AR
model.
load iddata9 z9 sys = ar(z9,4);
Plot the output spectrum for the model.
spectrumplot(sys,plot_options);
Initialize Plot Options Using Toolbox Preferences
opt = spectrumoptions('identpref');
Output Arguments
opt
— Option set for spectrumplot
spectrumpoptions
option set
Option set containing the specified options for spectrumplot
.
Field | Description |
---|---|
|
Text and style for axes labels and plot title, specified as a structure array with the following fields:
|
TickLabel |
Tick label style, specified as a structure array with the following fields:
|
Grid |
Show or hide the grid, specified as one of the
following values: Default:
|
GridColor |
Color of the grid lines, specified as one of the
following: vector of RGB values in the range
Default:
|
XLimMode , YLimMode |
Axes limit modes, specified as one of the following values:
Default:
|
XLim , YLim | Axes limits, specified as an array of the form [min,max] |
IOGrouping |
Grouping of input-output pairs in the plot,
specified as one of the following values:
Default:
|
InputLabels , OutputLabels |
Input and output label styles, specified as a structure array with the following fields:
|
InputVisible , OutputVisible |
Visibility of input and output channels, specified
as one of the following values:
Default:
|
ConfidenceRegionNumberSD |
Number of standard deviations to use to plot the response confidence region. Default:
|
FreqUnits | Frequency units, specified as one of the following values:
Default: You
can also specify |
FreqScale |
Frequency scale, specified as one of the following
values: Default:
|
MagUnits |
Magnitude units, specified as one of the following
values: Default:
|
MagScale |
Magnitude scale, specified as one of the following
values: Default:
|
MagLowerLimMode |
Enables a lower magnitude limit, specified as one
of the following values: Default:
|
MagLowerLim | Lower magnitude limit, specified as data type double . |
Version History
Introduced in R2012a
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 (한국어)