连续-离散转换
Control System Toolbox™ 提供了相应的命令,可以对动态系统模型进行重采样或在连续时间域和离散时间域之间进行转换。
实时编辑器任务
转换模型速率 | 在连续时间和离散时间之间转换模型,并在实时编辑器中对模型进行重采样 |
函数
c2d | 将模型从连续时间转换为离散时间 |
d2c | Convert model from discrete to continuous time |
d2d | Resample discrete-time model |
upsample | Upsample discrete-time models |
c2dOptions | Specify discretization method for continuous-time to discrete-time conversions |
d2cOptions | Create option set for discrete- to continuous-time conversions |
d2dOptions | Create option set for discrete-time resampling |
主题
- Discretizing and Resampling Models
This example shows how to use the commands for continuous/discrete, discrete/continuous, and discrete/discrete conversions.
- Discretize a Compensator
This example shows how to convert a compensator from continuous to discrete time using several discretization methods, to identify a method that yields a good match in the frequency domain.
- Discretizing a Notch Filter
This example shows the comparison of several techniques for discretizing a notch filter.
- Improve Accuracy of Discretized System with Time Delay
This example shows how to improve the frequency-domain accuracy of a system with a time delay that is a fractional multiple of the sample time.
- Convert Discrete-Time System to Continuous Time
This example shows how to convert a discrete-time system to continuous time using
d2c
, and compare the results using two different interpolation methods. - Continuous-Discrete Conversion Methods
Choose discretization and interpolation methods for converting between continuous and discrete models.
- Upsample Discrete-Time System
This example shows how to upsample a system using both the
d2d
andupsample
commands and compare the results of both to the original system. - Choosing a Resampling Command
Use resampling commands to change the sample time of a discrete-time system.