c2d
| Page in progress. | 
Transformation of a continuous model into a discrete one.
| Library | 
 | 
Arguments
Input arguments
# sysc — continuous dynamic system model
+
dynamic system model
Details
The initial continuous model of a dynamic system.
| Data types | 
 | 
# ts — sampling step
+
scalar
Details
The discretization step of the resulting discrete system.
| Data types | 
 | 
# method — sampling method
+
:zoh (by default) | :foh | :tustin
Details
The discretization method. You can choose one of the following values:
- 
:zoh— Zero-order extrapolator (selected by default). Within the sampling interval, the signals are approximated by a constant value equal to the value of the signal at the beginning of the sampling interval.
- 
:foh— a zero-order extrapolator. Within the sampling interval, the signals are approximated by straight segments passing through the ends of the signal curve in the sampling interval.
- 
:tustin— bilinear transformation within the sampling interval.
| Data types | 
 | 
# w_prewarp — frequency of pre-distortion
+
0 (by default) | scalar
Details
The pre-distortion frequency in rad/s used in bilinear conversion. The value must be a positive number.
| Data types | 
 | 
Output arguments
# sysd is a discrete model of a dynamic system
+
dynamic system model
Details
The resulting discrete model of a dynamical system.
| Data types | 
 |