Function Reference    
ssdata

Quick access to state-space model data

Syntax

Description

[a,b,c,d] = ssdata(sys) extracts the matrix (or multidimensional array) data from the state-space model (LTI array) sys. If sys is a transfer function or zero-pole-gain model (LTI array), it is first converted to state space. See Table 11-16, "State-Space Model Properties," on page 11-195 for more information on the format of state-space model data.

[a,b,c,d,Ts] = ssdata(sys) also returns the sample time Ts.

You can access the remaining LTI properties of sys with get or by direct referencing, for example,

For arrays of state-space models with variable numbers of states, use the syntax

to extract the state-space matrices of each model as separate cells in the cell arrays a, b, c, and d.

See Also
dssdata     Quick access to descriptor state-space data

get         Get properties of LTI models

set         Set model properties

ss          Specify state-space models

tfdata      Quick access to transfer function data

zpkdata     Quick access to zero-pole-gain data


  ssbal stack