function reform

Resize an array without actually moving data. The number of new elements must exactly match the number of elements in the array to be resized. If no size arguments are given, all array axes with length 1 are removed.

result = reform(a, [n1 [, n2 [, n3]]])

a:   The array to be resized
n1:   New axis length
n2:   New axis length
n3:   New axis length