freqsepOptions
(Not recommended) Options for slow-fast decomposition
freqsepOptions
is not recommended. Specify the SepTol
option directly as a name-value argument to
freqsep
(since R2023b). For more information on updating your
code, see Version History.
Description
returns the default
options for opt
= freqsepOptionsfreqsep
.
returns an options set with the options specified by one or more
opt
= freqsepOptions(Name,Value
)Name,Value
pair arguments.
Examples
Separate Nearby Modes by Adjusting Tolerance
Decompose a model into slow and fast components between poles that are closely spaced.
The following system includes a real pole and a complex pair of poles that are all close to s = -2.
G = zpk(-.5,[-1.9999 -2+1e-4i -2-1e-4i],10);
Try to decompose the model about 2 rad/s, so that the slow component contains the real pole and the fast component contains the complex pair.
[Gs,Gf] = freqsep(G,2);
Warning: One or more fast modes could not be separated from the slow modes. To force separation, relax the accuracy constraint by increasing the "SepTol" factor (see "freqsepOptions" for details).
These poles are too close together for freqsep
to
separate. Increase the relative tolerance to allow the separation.
options = freqsepOptions('SepTol',5e10);
[Gs,Gf] = freqsep(G,2,options);
Now freqsep
successfully separates the dynamics.
slowpole = pole(Gs)
slowpole = -1.9999
fastpole = pole(Gf)
fastpole = 2×1 complex
-2.0000 + 0.0001i
-2.0000 - 0.0001i
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: 'SepTol',5
SepTol
— Accuracy loss factor
10 (default) | nonnegative scalar
Accuracy loss factor for slow-fast decomposition, specified as a
nonnegative scalar value. freqresp
ensures that the
frequency responses of the original system, G
, and
the sum of the decomposed systems G1+G2
, differ by no
more than SepTol
times the absolute accuracy of the
computed value of G(s)
. Increasing
SepTol
helps separate modes straddling the
slow/fast boundary at the expense of accuracy.
Output Arguments
opt
— Options for freqsep
freqsepOptions
options set
Options for freqsep
, returned as a
freqsepOptions
options set. Use
opt
as the last argument to
freqsep
when computing slow-fast
decomposition.
Version History
Introduced in R2014aR2023b: Not recommended
freqsepOptions
is not recommended. Specify the
SepTol
option directly as a name-value argument to
freqsep
. This table describes the change in the
workflow.
Before R2023b | R2023b |
---|---|
opt = freqsepOptions("SepTol",5e10);
[Gs,Gf] = freqsep(G,2,opt); |
[Gs,Gf] = freqsep(G,2,SepTol=5e10); |
See Also
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
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)