<< obsvf | Control System functions | padecoef >> |
[A, B, C, D] = ord2(wn, z) |
[num, den] = ord2(wn, z) |
natural frequency
damping factor
State matrix: Nx-by-Nx matrix.
Input-to-state matrix: Nx-by-Nu matrix.
State-to-output matrix: Ny-by-Nx matrix.
Feedthrough matrix: Ny-by-Nu matrix.
polynomial coefficients: a row vector or as a cell array of row vectors.
polynomial coefficients: a row vector or as a cell array of row vectors.
ord2 offers a convenient way to obtain either the state-space representation or the transfer function of a second-order system based on its natural frequency and damping factor.
wn = 5;
z = 0.7;
[A, B, C, D] = ord2(wn, z);
sys1 = ss(A, B, C, D)
[num, den] = ord2(wn, z);
sys2 = tf(num, den)
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET