TransposeMat - like transpose, but handles N-D arrays

Transposes the rows/columns (only) on any N-dimensional array

You are now following this Submission

Matlab provides 'transpose' for 2-D arrays and 'permute' for N-D arrays. This is just a very basic interface that chooses the correct one to use for the situation, but ONLY ever transposes rows/columns.

Cite As

Chad Webb (2026). TransposeMat - like transpose, but handles N-D arrays (https://www.mathworks.com/matlabcentral/fileexchange/41776-transposemat-like-transpose-but-handles-n-d-arrays), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Fixed bugs for non-square matricies

1.0.0.0