File Exchange

image thumbnail


version (1.29 KB) by smsinks
Transpose any table


Updated 16 Oct 2018

View Version History

View License

This function produces a transpose of any table

Cite As

smsinks (2021). transposeTable (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)


Thanks, Julian. I didn't know about rows2vars in R2018b.


I saw MathWorks added rows2vars in R2018b, which does much the same as your function - and suggests you discovered a previously unmet need! I am not rating your submission because I haven't used it myself (I will likely use rows2vars for this purpose).

For interest you might know that the function matlab.lang.makeValidName is probably easier to generate variable names than using regex.

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!