%% 3-D Array to Vector
% Create a 1-by-1-by-3 array and remove the dimensions of length 1, resulting in a 3-by-1 column vector.

A = zeros(1,1,3);
A(:,:,1:3) = [1 2 3]
B = squeeze(A)

% Copyright 2015 The MathWorks, Inc.