Matlab 2 Latex
No License
m2tex converts a matlab file into a colored, tabbed .m file will all of the proper symbols converted to be latex compatible.
The latex files it produces can easily be included in other files by using /input{filename}
or /texttt{input{filename}} for more matlab look to the code
Remember latex assumes that the extension for any file used in the input command is .tex so you should not put it on.
There is another program on the site that lets you put .m files in latex that I did not find until I had already written this. This program is different because it is a matlab function that converts your code to .tex. The other is a latex style that lets you import matlab code.
Cite As
Kevin Mader (2025). Matlab 2 Latex (https://www.mathworks.com/matlabcentral/fileexchange/13277-matlab-2-latex), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
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.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Fixed two bugs, one relating to { , } , _ characters. The other about indenting. |
