Skip to content

transpose

Transpose an array (Excel-compatible).

v = transpose(arr)

Returns arr with rows and columns swapped. Same as the ' operator (or ctranspose for the conjugate transpose) on real-valued matrices.

transpose([1 2 3; 4 5 6]) % [1 4; 2 5; 3 6]