To Latex

This tool allows you to export a numerical or cell array or a table into TeX or LaTeX by creating the codes that TeX/LaTeX can understand.

You are now following this Submission

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://www.mathworks.com/matlabcentral/fileexchange/98454-to-latex), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Straightforward COPY and PASTE functions

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0