gramOptions
Options for the gram
command
Description
returns
an option set with the default options for opt
= gramOptionsgram
.
returns an options set with the options specified by one or more opt
= gramOptions(Name,Value
)Name,Value
pair
arguments.
Examples
Compute Frequency-Limited Gramian
Compute the controllability Gramian of the following state-space model. Focus the computation on the frequency interval with the most energy.
sys = ss([-.1 -1;1 0],[1;0],[0 1],0);
The model contains a peak at 1 rad/s. Use gramOptions
to specify an interval around that frequency.
opt = gramOptions('FreqIntervals',[0.8 1.2]); gc = gram(sys,'c',opt)
gc = 2×2
4.2132 -0.0000
-0.0000 4.2433
Input Arguments
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
Example: 'FreqIntervals',[0.8 1.2]
FreqIntervals
— Frequency intervals for computing Gramians
[]
(default) | two-column matrix
Frequency intervals for computing frequency-limited controllability
and observability Gramians, specified as a matrix with two columns.
Each row specifies a frequency interval [fmin fmax]
,
where fmin
and fmax
are nonnegative
frequencies, expressed in the frequency unit of the model. For example:
To restrict the computation to the range between 3 rad/s and 15 rad/s, assuming the frequency unit of the model is rad/s, set
FreqIntervals
to[3 15]
.To restrict the computation to two frequency intervals, 3-15 rad/s and 40-60 rad/s, use
[3 15; 40 60]
.To specify all frequencies below a cutoff frequency
fcut
, use[0 fcut]
.To specify all frequencies above the cutoff, use
[fcut Inf]
in continuous time, or[fcut pi/Ts]
in discrete time, whereTs
is the sample time of the model.
The default value, []
, imposes no frequency
limitation and is equivalent to [0 Inf]
in continuous
time or [0 pi/Ts]
in discrete time. However, if
you specify a TimeIntervals
value other than []
,
then this limit overrides FreqIntervals = []
.
If you specify both a TimeIntervals
value and a FreqIntervals
value,
then the computation uses the union of these intervals.
TimeIntervals
— Time intervals for computing Gramians
[]
(default) | two-column matrix
Time intervals for computing time-limited controllability and
observability Gramians, specified as a matrix with two columns. Each
row specifies a time interval [tmin tmax]
, where tmin
and tmax
are
nonnegative times, expressed in the time unit of the model. For example:
To restrict the computation to the range between 3 s and 15 s, assuming the time unit of the model is seconds, set
TimeIntervals
to[3 15]
.To restrict the computation to two time intervals, 3-15 s and 40-60 s, use
[3 15; 40 60]
.To specify all times from zero up to a cutoff time
tcut
, use[0 tcut]
. To specify all times after the cutoff, use[tcut Inf]
.
The default value, []
, imposes no time limitation
and is equivalent to [0 Inf]
. However, if you specify
a FreqIntervals
value other than []
,
then this limit overrides Timeintervals = []
.
If you specify both a TimeIntervals
value and a FreqIntervals
value,
then the computation uses the union of these intervals.
Output Arguments
opt
— Options for gram
gramOptions
options set
Options for gram
, returned as a gramOptions
options
set. Use opt
as the last argument to gram
to
compute time-limited or frequency-limited Gramians.
Version History
Introduced in R2016a
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 (한국어)