You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). Matlab 2 Latex (https://www.mathworks.com/matlabcentral/fileexchange/13277-matlab-2-latex), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.55 KB)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | Fixed two bugs, one relating to { , } , _ characters. The other about indenting. |
