| Contents | Index |
sys = reshape(sys,s1,s2,...,sk)
sys
= reshape(sys,[s1 s2 ... sk])
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.
Change the shape of a model array from 2x3 to 6x1.
% Create a 2x3 model array. sys = rss(4,1,1,2,3); % Confirm the size of the array. size(sys)
This input produces the following output:
2x3 array of state-space models Each model has 1 output, 1 input, and 4 states.
Change the shape of the array.
sys1 = reshape(sys,6,1); size(sys1)
This input produces the following output:
6x1 array of state-space models Each model has 1 output, 1 input, and 4 states.

Learn more about resources for designing, testing, and implementing control systems.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |