matrix2word
Version 1.0.1 (4.73 KB) by
Richard Russell
Create a string from a Matlab matrix which can be copy and pasted into Microsoft Word's Equation Editor as Unicode.
Create a string from the Matlab matrix, M, which can be copy and pasted into Microsoft Word's Equation Editor as Unicode.
Supported data types for the input M are:
- Symbolic : isa(M, 'sym') is true
- Imaginary : isreal(M) is false.
- Floats : isfloat(M) is true.
- Integers : isinteger(M) is true.
This function was created as an alternative to Matlab's latex() function which comes with the Symbolic toolbox for symbolic data types. The author of this function had very little success copy and pasting the string from latex() into Word. MS Word would interpret the string incorrecly for small matrices. MS Word would also crash with large matrices. Copy and pasting the string produced by this function reduced chances of MS Word crashing or misinterpertting the matrix.
Cite As
Richard Russell (2026). matrix2word (https://www.mathworks.com/matlabcentral/fileexchange/128048-matrix2word), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2023a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
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.
