permute

permute(X,neworder) returns X with its dimensions rearranged according to neworder.

Examples

> X = rand(2,3)#

	0.250924    0.0460958     0.676816
	0.680573     0.320973     0.155359

> permute(X,[2 1])#

     0.250924     0.680573
    0.0460958     0.320973
     0.676816     0.155359

Resources

See also

fliplr | flipud | reshape