c2d

Convert model from continuous to discrete time.

📝 Syntax

  • [P, G] = c2d(A, B, Ts)

  • sysd = c2d(sysc, Ts)

  • sysd = c2d(sysc, Ts, method)

  • sysd = c2d(sysc, Ts, 'prewarp', w0)

📥 Input argument

  • A - State matrix: Nx-by-Nx matrix.

  • B - Input-to-state matrix: Nx-by-Nu matrix.

  • Ts - Sample time: positive scalar.

  • sysc - Continuous-time dynamic system: LTI model.

  • method - Discretization method: 'zoh', 'tustin', 'prewarp'

  • w0 - prewarp frequency.

📤 Output argument

  • P - phi

  • G - gamma

  • sysd - Discrete-time model

📄 Description

The functionsysd = c2d(sysc, Ts) discretizes the continuous-time dynamic system modelsysc using a zero-order hold on the inputs with a sample time ofTs.

For instance, you can usesysd = c2d(sysc, Ts, method) to explicitly specify the discretization method.

💡 Example

🔗 See also

d2c, ss.

🕔 History

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?