TransposeMat - like transpose, but handles N-D arrays

Transposes the rows/columns (only) on any N-dimensional array
198 Downloads
Updated 16 May 2013

View License

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 (2024). 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 .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Creating and Concatenating Matrices in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

Fixed bugs for non-square matricies

1.0.0.0