MATLAB: A basic question in matlab

matrix

Hello all,
If I have a 1xLxN matrix and would like to reshape it in order to get a LxN matrix, how I can do that? In particular, suppose I have a 1x2x4 matrix a:
a(1,:,1)=[0 0]; a(1,:,2)=[0 1];a(1,:,3)=[1 1];a(1,:,4)=[0 1];
and I would like to get a 4×2 matrix of [0 0;0 1;1 1;0 1]? Thanks.

Best Answer

Edit
squeeze(a).'
Related Question