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.
Updated 29 Aug 2021

View License

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 (2024). To Latex (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Straightforward COPY and PASTE functions

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes