a'(:)' %# Octave
b= a'; b(:)' %# Matlab
For more information on column-major order and on colon.
Added, more verbose variations may be occasionally practical as well:
a'(ind2sub([3 3], 1: 9))
permute(a, [2 1])(ind2sub([3 3], 1: 9))
Here permute(a, [2 1])
is now equivalent to a.'
.