Function Reference | ![]() ![]() |
Change the shape of an LTI array
Syntax
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...-sk
array of LTI models. Equivalently, sys = reshape(sys,[s1 s2 ... sk])
reshapes the LTI array sys
into an s1
-by-s2
-by...-sk
array of LTI models. With either syntax, there must be s1*s2*...*sk
models in sys
to begin with.
Example
sys = rss(4,1,1,2,3); size(sys) 2x3 array of state-space models Each model has 1 output, 1 input, and 4 states. sys1 = reshape(sys,6); size(sys1) 6x1 array of state-space models Each model has 1 output, 1 input, and 4 states.
See Also
ndims
Provide the number of dimensions of an LTI array
size
Provide the lengths of each dimension of an LTI array
![]() | reg | rlocus | ![]() |