[A, B, C, D] = ssdata(sys)
[A, B, C, D, Ts] = ssdata(sys)
| Parameter | Description |
|---|---|
| sys | LTI model. |
| Parameter | Description |
|---|---|
| A | State matrix: Nx-by-Nx matrix. |
| B | Input-to-state matrix: Nx-by-Nu matrix. |
| C | State-to-output matrix: Ny-by-Nx matrix. |
| D | Feedthrough matrix: Ny-by-Nu matrix. |
| TS | Sample time: scalar. |
The function ssdata(sys) retrieves the matrix data A, B, C, D from the state-space model (LTI array) represented by sys.
If sys is initially in the form of a transfer function or zero-pole-gain model (LTI array), it is automatically converted to the state-space representation before extracting the matrix data.
sysIn = ss([1 0;0 -2], [-1;0], [2 1], 0, 3.2);
[a, b, c, d, Ts] = ssdata(sysIn)
| Version | Description |
|---|---|
| 1.0.0 | initial version |