TransposeMat - like transpose, but handles N-D arrays
Version 1.1.0.0 (1.3 KB) by
Chad Webb
Transposes the rows/columns (only) on any N-dimensional array
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 LinuxCategories
Find more on Creating and Concatenating Matrices in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.