Matlab 2 Latex

A function to convert matlab functions to formatted colored .tex files .
11.6K Downloads
Updated 11 Dec 2006

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
Created with R2006b
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.0.0

Fixed two bugs, one relating to { , } , _ characters. The other about indenting.