| Creating and Manipulating Models | ![]() |
Generating LTI Arrays Using rss
A convenient way to generate arrays of state-space models with the same number of states in each model is to use rss. The syntax is
P is the number of outputs of each model in the LTI array.
M is the number of inputs of each model in the LTI array.
For example, to create a 4-by-2 array of random state-space models with three states, one output, and one input, type
sys = rss(3,2,1,4,2); size(sys) 4x2 array of continuous-time state-space models Each model has 2 outputs, 1 input, and 3 states.
| Building LTI Arrays | Building LTI Arrays Using for Loops | ![]() |