MATLAB: How to transpose a cell array

cell arrays

Each cell in the cell array contains a matrix, e.g.,
Suppose the cell array is
[8x1] cell
Inside which their are some matrix like
[6x2] double
[7x2] double
[6x2] double
[7x2] double
[6x2] double
[7x2] double
[6x2] double
[7x2] double
Now i want to transpose the cell array into
[1x8] cell
How to do it?

Best Answer

reshape command works for this example well. For poly as the name of the cell array,
polyre = reshape(poly,[1 8]);