Main Content

reshape

Change shape of model array

Syntax

sys = reshape(sys,s1,s2,...,sk)
sys = reshape(sys,[s1 s2 ... sk])

Description

sys = reshape(sys,s1,s2,...,sk) (or, equivalently, sys = reshape(sys,[s1 s2 ... sk])) reshapes the LTI array sys into an s1-by-s2-by-...-by-sk model array. With either syntax, there must be s1*s2*...*sk models in sys to begin with.

Examples

collapse all

Generate a 2-by-3 array of SISO models with four states each.

sys = rss(4,1,1,2,3);
size(sys)
2x3 array of state-space models.
Each model has 1 outputs, 1 inputs, and 4 states.

Change the shape of the array to create a 6-by-1 model array.

sys1 = reshape(sys,6,1);
size(sys1)
6x1 array of state-space models.
Each model has 1 outputs, 1 inputs, and 4 states.

See Also

|

Introduced before R2006a