Returns the transpose of the matrix argument. The returned matrix has the same elements as the parameter, except that the rows and columns are switched.
a = [1, 2, 3; 4, 5, 6];
transpose(a)
1 4
2 5
3 6
length. size. ones. zeros. setsize. .' .