Reshape a matrix

(pivot and unpivot)
1.7K Downloads
Updated 4 Apr 2016

View License

Please see the attached screenshot for examples of the two operations, associated with TRANSPOSE procedure of SAS, and with PIVOT and UNPIVOT statements of T-SQL.

Cite As

Dimitri Shvorob (2026). Reshape a matrix (https://www.mathworks.com/matlabcentral/fileexchange/20963-reshape-a-matrix), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Resizing and Reshaping Matrices in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0

BSD