c2dOptions
Specify discretization method for continuous-time to discrete-time conversions
说明
Use c2dOptions to specify the discretization method and associated quantities for discretizing models with c2d.
创建对象
Description
returns the default options for opts = c2dOptionsc2d. Customize options by using dot notation to change the properties of opts.
sets properties using one or more name-value arguments. For example, to use the bilinear (Tustin) approximation method, set opts = c2dOptions(Name,Value)'Method' to 'tustin'.
属性
Discretization method, specified as one of the following values:
'zoh' | Zero-order hold, where |
'foh' | Triangle approximation (modified first-order hold), where |
'impulse' | Impulse-invariant discretization. |
'tustin' | Bilinear (Tustin) approximation. By default, |
'matched' | Zero-pole matching method. (See [1], p. 224.) By default, |
'least-squares' | Least-squares method. Minimize the error between the frequency responses of the continuous-time and discrete-time systems up to the Nyquist frequency. Use the FitOrder option to specify the order of the discrete-time system. |
'damped' | Damped Tustin approximation based on the TRBDF2 formula for sparss models only. |
For information about the algorithms for each conversion method, see Continuous-Discrete Conversion Methods.
Prewarp frequency for 'tustin' method, specified as 0 or a positive scalar value. Specify the frequency in rad/TimeUnit, where TimeUnit is the time units, specified in the TimeUnit property, of the discretized system. A value of 0 corresponds to the standard 'tustin' method without prewarp.
自 R2021a 起
Fit order for 'least-squares' method, specified as 'auto' or an integer. This option specifies the order of the discrete-time model to be fitted to the continuous-time frequency response with the 'least-squares' method. The default value 'auto' to uses the order of the continuous-time model. Specify a model order by changing FitOrder to a positive integer. Reducing the order can help with unstable poles or pole/zero cancellations at z = -1.
Maximum order of the Thiran filter used to approximate fractional delays in the 'tustin' and 'matched' methods. A value of 0 means that c2d rounds fractional delays to the nearest integer multiple of the sample time. If you set this property to a positive integer, c2d uses thiran (Control System Toolbox) to approximate fractional delays before discretizing.
For state-space models with fractional delays, the Thiran filters contribute additional internal delays when DelayModeling is set to 'delay' and additional states when DelayModeling is set to 'state'. (自 R2024a 起)
自 R2024a 起
Format of modeling extra delays arising from discretization, specified as 'delay' or 'state'. Discretizing models with input or output delays that are fractional multiples of Ts can give rise to additional delays besides the discrete input and output delays. Use this option to specify whether to model these extra delays as internal delays ('delay') or additional states ('state').
自 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 discretized state-space models.'off'— Minimize the number of delays in each model.
示例
Generate two random continuous-time state-space models.
sys1 = rss(3,2,2); sys2 = rss(4,4,1);
Create an option set for c2d to use the Tustin discretization method and 3.4 rad/s prewarp frequency.
opt = c2dOptions('Method','tustin','PrewarpFrequency',3.4);
Discretize the models, sys1 and sys2, using the same option set, but different sample times.
dsys1 = c2d(sys1,0.1,opt); dsys2 = c2d(sys2,0.2,opt);
参考
[1] Franklin, G.F., Powell, D.J., and Workman, M.L., Digital Control of Dynamic Systems (3rd Edition), Prentice Hall, 1997.
版本历史记录
在 R2012a 中推出c2dOptions provides two new options:
DelayModeling— Specify whether to model extra delays as internal delays (default) or additional states.Consistency— Enforce state and delay consistency in state-space arrays. This option is helpful when discretizing gridded LPV or LTV models.
The FractDelayApproxOrder property of c2dOptions is renamed to ThiranOrder.
The new FitOrder option specifies the fit order when using the least-squares method for continuous-discrete conversion. FitOrder specifies the order of the discrete-time model to be fitted to the continuous-time frequency response. Reducing the order can help with unstable poles or pole/zero cancellations at z = -1.
另请参阅
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- 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)