FUNCTION REFERENCE

c2d

Convert a continuous LTI model to sampled time.

Convert a continuous LTI model to sampled time.

Syntax

R = c2d(sys, Ts); R = c2d(sys, Ts, method); [R, G] = c2d(sys, Ts, method)

`R=c2d(sys,Ts[,method])`; method is 'zoh' (default), 'tustin', or 'foh'.

For state-space (`ss`) models, `[R, G] = c2d(sys, Ts[, method])` also returns

the initial-condition map `G` (`nx x (nx+nu)`) such that `xd[0] = G*[x(0); u(0)]`

(`[eye(nx) zeros(nx,nu)]` for `'zoh'`/`'tustin'`, `[eye(nx) -b1]` for `'foh'`).

Ts must be positive and finite. Zero-order hold uses the exponential of

[A*Ts B*Ts; 0 0]. First-order hold integrates a linear input over each

interval and returns a causal state-coordinate realization. Tustin uses

linear solves for the bilinear substitution s=(2/Ts)*(z-1)/(z+1).

SISO models preserve their representation. SISO transport delays must be

integer multiples of Ts and become whole sample delays. Trailing model

property name-value pairs update the sampled model. Improper models and

sampling prewarping are unsupported.

Matrix functions use the engine's existing bounded numerical kernels.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.