d2cOptions
Create option set for discrete- to continuous-time conversions
Description
Use d2cOptions
to specify the discretization method and
associated quantities for discretizing models with d2c
.
Creation
Description
returns the
default options for opts
= d2cOptionsd2c
.
creates an option set with the options specified by one or more name-value
arguments.opts
= d2cOptions(Name=Value
)
Properties
method
— Discrete-to-continuous time conversion method
'zoh'
(default) | 'foh'
| 'tustin'
| 'matched'
Discrete-to-continuous time conversion method, specified as one of the following values:
'zoh' | Zero-order hold, where d2c
assumes that the control inputs are piecewise
constant over the sample time
Ts . |
'foh' | Linear interpolation of the inputs (modified first-order hold). Assumes that the control inputs are piecewise linear over the sampling period. |
'tustin' | Bilinear (Tustin) approximation. By default,
d2c converts with no prewarp.
To include prewarp, use the
PrewarpFrequency option.
|
'matched' | Zero-pole matching method. (See [1], p. 224.) |
For information about the algorithms for each
d2c
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 discrete-time system. Specify the prewarp frequency
as a positive scalar value. A value of 0 corresponds to the
'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 state-space models.'off'
— Allow additional states when encountering poles a z = 0.
Examples
Specify Model Discretization Method
Consider the following discrete-time transfer function.
Create the discrete-time transfer function with a sample time of 0.1 seconds.
Hd = tf([1 1],[1 1 1],0.1);
Specify the discretization method as bilinear (Tustin) approximation and the prewarp frequency as 20 rad/seconds.
opts = d2cOptions('Method','tustin','PrewarpFrequency',20);
Convert the discrete-time model to continuous-time using the specified discretization method.
Hc = d2c(Hd,opts);
You can use the discretization option set opts
to discretize additional models using the same options.
References
[1] Franklin, G.F., Powell,D.J., and Workman, M.L., Digital Control of Dynamic Systems (3rd Edition), Prentice Hall, 1997.
Version History
Introduced in R2012aR2024a: 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 (한국어)