matrix2word

Create a string from a Matlab matrix which can be copy and pasted into Microsoft Word's Equation Editor as Unicode.
34 Downloads
Updated 19 Apr 2023

View License

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 Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.1

Add test cases.

1.0.0