


Converts a cell array into a regular array.
Each element of X must be a regular array, and must have the same number of dimensions
k. Converts X to an array Y of dimension k+1 where Y(:,:...,:,i) is X{i} padded to be
as big as the biggest element in X (along each dimension).
Specifically, let di1..dik be the k dimensions of element X{i}. Let dj=max(dij) for
each j. Then each element of X{i} is padded to have size [d1 ... dk], and then the
elements of X are stacked into a vector.
Treats the cell array X as a vector (so ignores the layout of X).
INPUTS
X - cell array where each element is a regular array with dimension k
padelement - [optional] element with which to pad (0 by default)
OUTPUTS
Y - resulting array of dimension k+1
DATESTAMP
29-Sep-2005 2:00pm
See also MAT2CELL2