MATLAB: How to rearrange an array? rows to columns

matlab function

ex: a=[1 1 1; 2 2 2; 3 3 3]
to
aa=[1 2 3; 1 2 3; 1 2 3]

Best Answer

aa=a'