%% Permute Model Array Dimensions
% Create a 1-by-2-by-3 array of state-space models.

sysarr = rss(2,2,2,1,2,3);

%
% Rearrange the model array so that the dimensions are 3-by-2-by-1.

newarr = permute(sysarr,[3 2 1]);
size(newarr)

% The input and output dimensions of the model array remain unchanged.
% Copyright 2012 The MathWorks, Inc.