<< bode | Control System functions | care >> |
[P, G] = c2d(A, B, Ts) |
sysd = c2d(sysc, Ts) |
sysd = c2d(sysc, Ts, method) |
sysd = c2d(sysc, Ts, 'prewarp', w0) |
State matrix: Nx-by-Nx matrix.
Input-to-state matrix: Nx-by-Nu matrix.
Sample time: positive scalar.
Continuous-time dynamic system: LTI model.
Discretization method: 'zoh', 'tustin', 'prewarp'
prewarp frequency.
phi
gamma
Discrete-time model
The function sysd = c2d(sysc, Ts) discretizes the continuous-time dynamic system model sysc using a zero-order hold on the inputs with a sample time of Ts.
For instance, you can use sysd = c2d(sysc, Ts, method) to explicitly specify the discretization method.
A = [1 0.5; 0.5 1 ];
B = [0 -1; 1 0 ];
C = [ -1 0; 0 1 ];
D = [ 1 0; 0 -1 ];
sys = ss(A, B, C, D);
Ts = 2;
sysd = c2d(sys, Ts, 'zoh')
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET