control.matlab.c2d¶
- control.matlab.c2d(sysc, Ts, method='zoh', prewarp_frequency=None)¶
Convert a continuous time system to discrete time by sampling
- Parameters
sysc (LTI (
StateSpace
orTransferFunction
)) – Continuous time system to be convertedTs (float > 0) – Sampling period
method (string) – Method to use for conversion, e.g. ‘bilinear’, ‘zoh’ (default)
prewarp_frequency (real within [0, infinity)) – The frequency [rad/s] at which to match with the input continuous- time system’s magnitude and phase (only valid for method=’bilinear’)
- Returns
sysd – Discrete time system, with sampling rate Ts
- Return type
LTI of the same class
Notes
See
StateSpace.sample()
orTransferFunction.sample`()
for further details.Examples
>>> sysc = TransferFunction([1], [1, 2, 1]) >>> sysd = sample_system(sysc, 1, method='bilinear')