%% 3-D Array
% Create a 3-by-4-by-2 array and permute it so that the first and third dimensions are switched, resulting in a 2-by-4-by-3 array.

rng default
A = rand(3,4,2)
B = permute(A,[3 2 1])
szB = size(B)

% Copyright 2012 The MathWorks, Inc.