You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Suppose c is a numerical array, or a cell array containing mixed strings and numerical entries. Or c is a table. And you would like to export the content of c into a TeX or LaTeX file. t = tolatex(c) puts the required LaTeX code into the variable t, which you can then copy and paste into your text editor.
The LaTeX code is bare bones, but the program gives you a starting point from which you can then manually beautify the result.
The code is adapted from the "Straigtforward Copy and Paste" FEX contribution.
Cite As
Yvan Lengwiler (2026). To Latex (https://se.mathworks.com/matlabcentral/fileexchange/98454-to-latex), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Straightforward COPY and PASTE functions
General Information
- Version 1.0.0 (2.81 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |
