MATLAB: Matrix reshaping

array reshape

Does someone know how to reshape an array for example: A=[1 5; 2 4; 5 6] to an array B=(1,6) to be like this: B=[1 5 2 4 5 6];
Thank you…

Best Answer

reshape(A',1,[])