transpose(x) transpose the 2-D array x
transpose(x, permutation) general transpose
The permutation is a comma delimited list of cyclic permutations to be applied to the indices of x. Each cyclic permutation may be:
In either case, n or nI can be non-positive to refer to indices relative to the final dimension of x. That is, 0 refers to the final dimension of x, -1 to the next to last dimension, and so on. Thus, transpose(x, [1,0]) swaps the first and last dimensions of x.