Select a matrix in editor, and run this function to align it. By default, the elements are aligned to center. You can also align them to left or right by using different input.
Cite As
Xingwang Yong (2024). Align Matrix (https://www.mathworks.com/matlabcentral/fileexchange/75496-align-matrix), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2020a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: Align equal sign
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.