d2dOptions
Create option set for discrete-time resampling
Description
Use d2dOptions
to specify the discretization method and
associated quantities for discretizing models with d2d
.
Creation
Description
returns the default
options for opts
= d2dOptionsd2d
.
creates an option set with the options specified by one or more name-value
arguments.opts
= d2dOptions(Name=Value
)
Properties
Method
— Resampling method
'zoh'
(default) | 'tustin'
Resampling discretization method, specified as one of the following values:
'zoh' | Zero-order hold, where |
'tustin' | Bilinear (Tustin) approximation. By default, |
For information about the algorithms for each d2d
conversion
method, see Continuous-Discrete Conversion Methods.
PrewarpFrequency
— Prewarp frequency for 'tustin'
method
0 (default) | positive scalar
Prewarp frequency for 'tustin'
method, specified in
rad/TimeUnit
, where TimeUnit
is the time units,
specified in the TimeUnit
property, of the resampled system. Takes
positive scalar values. The prewarp frequency must be smaller than the Nyquist frequency
before and after resampling. A value of 0 corresponds to the standard
'tustin'
method without prewarp.
Consistency
— State and delay consistency in state-space arrays
'off'
(default) | 'on'
Since R2024a
Option to specify state and delay consistency in state-space arrays, specified as
'off'
or 'on'
.
'on'
— Provide state and delay consistency across the resulting array of resampled state-space models.'off'
— Minimize the number of delays. This option may increase the number of states in the resulting resampled array of models.
Examples
Specify Method for Resampling a Discrete-Time Model
Create the following discrete-time transfer function with sample time 0.1 seconds.
h1 = tf([1 1],[1 1 1],0.1);
Specify the discretization method as bilinear Tustin method with a prewarping frequency of 20 rad/seconds.
opts = d2dOptions('Method','tustin','PrewarpFrequency',20);
Resample the discrete-time model using the specified options.
h2 = d2d(h1,0.05,opts);
You can use the option set opts
to resample additional models using the same options.
Version History
Introduced in R2010aR2024a: Option for state and delay consistency in state-space arrays
Use the new option Consistency
to enforce state and delay consistency
in state-space arrays. This option is helpful when discretizing gridded LPV or LTV
models.
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 (한국어)