Output a matrix in LaTeX format.
This file will output a MATLAB numeric matrix in a format suitable to paste into a LaTeX tabular environment. You can choose whether to individually cast each element in math mode (you wouldn't want
- 7.7K (All time)
- 4 (Last 30 days)
- 4.9 / 5
- Community
-
17 Dec 2002
MATLAB Table to LaTeX conversor
This function converts a MATLAB(R) table into a .tex file, using LaTeX formatting.
The function table2latex(T, filename) formats a MATLAB table (T) into a .tex file (specified by the filename path), following the LaTeX formatting. Please, avoid using cells or structs inside the
- 6.4K (All time)
- 6 (Last 30 days)
- 4.9 / 5
- Community
-
22 Oct 2018
Exports a figure as a pdf file in vector format for inclusion into LaTeX.
PLOT2LATEX saves a Matlab figure as a pdf file in vector format for inclusion into LaTeX. Requires free and open-source vector graphics editor Inkscape. It invokes Inkscape to save the text, labels
- 4.9K (All time)
- 9 (Last 30 days)
- 5.0 / 5
- Community
-
20 Apr 2016
Using full Latex markup in m-files to generate high quality documentation. Version 1.3
Publish2LatexVersion V1.3A new conversion of figures to eps has been implemented. This automatically selects the best renderer depending on the nature of the data on the axis of the figure. It
- 1.4K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
31 Jul 2013
Function for converting numeric or cell arrays to LaTeX table.
This function was designed to be tool for converting MATLAB 2D arrays into a LaTeX tabular environment. It includes the ability to add horizontal and vertical labels, alter the data format, insert
- 3.2K (All time)
- 1 (Last 30 days)
- 4.7 / 5
- Community
-
9 Jun 2009
Easily include nicely syntax highlighted m-code in your LaTeX documents.
hassle — just include it and you're done.I originally wrote this package for myself to have colourful source code highlighted in LaTeX, looking exactly like in the Matlab editor — being able to just
- 160.1K (All time)
- 19 (Last 30 days)
- 4.9 / 5
- Community
-
11 Nov 2015
TABLE2LATEX converts a table to the tabular form for use in LaTeX.
table2latex converts a table to the tabular form for use in LaTeX.Input argsT: a table of elementsselectedCols: index vector of table columns that need to beprinted. Default: All columns.label: the
- 584 (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
16 Jul 2024
MATLAB array to LaTeX table converter.
This function converts an MATLAB 2-dimensional array (matrix) which can be numerical or a cell array, into proper formated LaTeX code. The result will be a file that can be included into any LaTeX
- 24.3K (All time)
- 2 (Last 30 days)
- 4.7 / 5
- Community
-
17 May 2004
This function converts a Matlab legend to a text annotation for latex interpretation.
LEGEND2LATEX(FIGURE_HANDLE) Converts the present legends in the figure to legends that can be postprocessed using LaPrint.Note that all earlier legend2latex objects are removed.Can convert several
- 2.4K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
26 Nov 2009
Converts matrices, cells and MATLAB tables to LaTex table code. Allows format,pivot,col/row headers.
Converts matrices, cells or MATLAB tables to LaTeX table code. Easy to use and very flexible:- takes MATLAB matrices, cells or tables as input- gives code for a LaTeX table containing your data as
- 18.4K (All time)
- 7 (Last 30 days)
- 4.8 / 5
- Community
-
25 Aug 2016
This m-file (with GUI) converts m-code into a tex-file for including in a LaTeX-document.
This file lets you very easy INCLUDE COLORED M-CODE in your LaTeX-file.After you run this m-file "m2tex.m" and inlcude the output tex-file in your LaTeX document, you will experience NO DIFFERENCE IN
- 12.3K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
12 Sep 2012
Converts a displayed figure to latex .tex format. The code can handle zoomed in plots
Create your 2D, multiple axes plot, and then convert it to a LaTeX .tex file. Then, include the .tex file in your thesis or paper using pstricks. The code uses the data contained in the figure
- 4.2K (All time)
- 2 (Last 30 days)
- 4.7 / 5
- Community
-
2 Oct 2007
Matlab matrix to LaTeX conversion example
Script showing a simple way to convert a MATLAB numeric matrix to LaTeX.
This script shows a simple way to convert a MATLAB numeric matrix to a LaTeX matrix. In the script, choose matrix to convert and output formatting. The resulting LaTeX matrix is printed in the
- 837 (All time)
- 4 (Last 30 days)
- 5.0 / 5
- Community
-
1 Oct 2020
Generates latex table code for regression and other output useful for journal articles.
Function outreg_latex.m written byRob HicksDepartment of EconomicsThe College of William and MaryThis function is an implementation of some of the features of the ado routines outreg and outreg2
- 977 (All time)
- 1 (Last 30 days)
- 3.8 / 5
- Community
-
5 Feb 2014
fig2texPS - Export Matlab Figure to LaTeX
V053 - Conversion of a Matlab figure to a LaTeX file with PSTricks compatible macros
file to be included in a larger document. The LaTeX packages pstricks, pst-node, pst-plot, pst-circ and moredefs are required. An minimal example latex code is generated at each time this script is run
- 7.6K (All time)
- 4 (Last 30 days)
- 4.6 / 5
- Community
-
3 Nov 2010
This function extends the capabilities of the plot function in Matlab and enhances the visual output of a basic plot.
- 36 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
1 Apr 2023
Converts a displayed surface plot to LaTeX .tex format
Create your simple surface plot, and then automatically generate the LaTeX file. This is my first attempt, so it will not handle all of the possible surface plots.If you want to adjust the file
- 1.6K (All time)
- 2 (Last 30 days)
- 4.0 / 5
- Community
-
28 Nov 2006
Resizing Matlab plots for publication purposes (LaTeX)
This function will resize the plot to the proper size based on the figure width and font size.
latex_fig.m is the function file which will automatically adjust the plot size according to the specification: font_size and f_width. It will save your time on tuning font size and figure window
- 1.4K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
30 Apr 2012
Huygens-Fresnel integral approximation on the GPU
Simulate electromagnetic wave propagation through free-form apertures, or off rough surfaces. Speed up the computation by using the GPU.
- 1.9K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
23 Oct 2020
A function to convert matlab functions to formatted colored .tex files .
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
- 11.6K (All time)
- 2 (Last 30 days)
- 4.3 / 5
- Community
-
11 Dec 2006
Make Inkscape PostScript files compatible with psfrag in LaTeX
eps files exported with Inkscape cannot be used with psfrag.
[<010203>-1<0405>-1<06>-1<07>1<08>129<090a06>]TJ and replaces them by strings of the form (int)Tj, where int is a number 1,2,3, ...Finally you can use \psfrag{int}{your latex expression} in LaTeX.This function is a modification of the function
- 855 (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
8 Dec 2010
func_latex_table(filename,format,M,V,C)
func_latex_table(filename,format,M,V,C)
%--------------------------------------------------------------------------% func_latex_table(filename,format,M,V,C)% This version onlly works on Matlab 2016a and later % % filename = must be a
- 31 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
17 Nov 2017
Matlab mesh to PDF with 3D interactive object
Export triangulated mesh into a pdf with a 3D interactive object.
- 10K (All time)
- 3 (Last 30 days)
- 4.6 / 5
- Community
-
10 Jan 2010
Given a value, array, equation or array of equations. This program will output to a figure of desir
figure size. Current limitation is due to the maximum latex output length of 1300 characters.
- 2K (All time)
- 1 (Last 30 days)
- 4.0 / 5
- Community
-
5 Jan 2007
A script to convert MATLAB/Octave into TikZ figures for easy and consistent inclusion into LaTeX.
current directory, for example). b. Make sure that your LaTeX installation includes the packagesTikZ (aka PGF, >=2.00) andPgfplots (>=1.3).Generate your plot in MATLAB.Invoke matlab2tikz by```>>
- 128.1K (All time)
- 136 (Last 30 days)
- 4.8 / 5
- Community
-
16 Jul 2024
Discrete Orthogonal Polynomial Toolbox: DOPBox Version 1.8
A toolbox for discrete orthogonal polynomials and their applications to fitting, ODEs etc.
- 4.4K (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
4 Mar 2014
uibutton: GUI pushbuttons with better labels
Creates pushbutton uicontrol labeled with TeX or LaTeX strings.
easy to use as it accepts all the same arguments as uicontrol with the addition of the Interpreter property which you can set to 'tex' or 'latex' and the Rotation property to set the angle of rotation of
- 11.3K (All time)
- 1 (Last 30 days)
- 4.8 / 5
- Community
-
5 Nov 2010
latextableassist - simple GUI to make formatted LaTeX tables from arrays
A simple GUI function that takes a 2D array and based on user specifications writes a LaTeX table.
Takes a 2D array and writes a formatted LaTeX table. Meant to take the tedium out of exporting your results to your published work. It allows you to enter column headings, which may span multiple
- 396 (All time)
- 1 (Last 30 days)
- 4.0 / 5
- Community
-
15 Sep 2011
Convert m-files (or code in general) to LaTeX input that numbers lines, etc.
This function was written specifically for importing algorithms quickly into LaTeX with little user interaction. It automatically numbers each line and maintains indenting. The user can optionally
- 2.3K (All time)
- 1 (Last 30 days)
- 3.5 / 5
- Community
-
5 Nov 2004
Convert augmented matrix to Latex linear system in Latex
This code converts a MATLAB matrix to a linear system in Latex
This code convertes a MATLAB matrix to a linear system in Latex format from an augmented matrix AYou need to use \usepackage{amsmath,systeme}It's built on the code matrix2latex.m by Lu Ce
- 5 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
30 Mar 2023
forms a latex string representing the matrix or vector
you simply have to give the variable as the only one parameter and the result will be latex code to be used in math environment with the help of the amsmath commands bmatrix or pmatrix for vectors or
- 994 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
19 Apr 2007
Displays a LaTeX string as an image.
If you have LaTeX already installed, this function will convert LaTeX strings into images and display them in figures.
- 10.9K (All time)
- 2 (Last 30 days)
- 4.7 / 5
- Community
-
1 Sep 2016
- 504 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
27 Mar 2024
Export data to latex table
This function exports MATLAB array (numerical or a cell array) to LaTeX enviroment tabularx.The results it's printed to the command window and/or can be saved to a file.You may choose table width
- 1.9K (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
17 Jun 2008
Translate LaTeX to MATLAB with ChatGPT
This script illustrates the translation of LaTeX math into MATLAB code with OpenAI's ChatGPT.
This script illustrates translation of LaTeX math into MATLAB code with OpenAI's ChatGPT. View and like related scripts at
- 72 (All time)
- 2 (Last 30 days)
- -- / 5
- Community
-
9 Feb 2026
Generate the latex code for any numerical 2D matrix
The function displays the latex code for any numerical 2D matrix on the command window.INPUTS:M: The numerical matrix to be converted to latexfrmt (Optional): The text formatting speciffier. (Default
- 17 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
12 Sep 2023
Create regression output for latex
reg2latexDescriptionThe function reg2latex creates a .tex file from a linear model in Matlab. The function allows for multiple model inputs and to format your own regression output. If you use other
- 144 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
24 Sep 2022
Convert an equation to latex form.
EQ2LATEX Convert an equation to latex form. t = eq2latex(f,copyOpt) converts a matlab symbolic equation to latex form and write it on a figure window to aid visual inspection of syntax or user
- 602 (All time)
- 3 (Last 30 days)
- -- / 5
- Community
-
2 Dec 2019
generates nice for human numbers as a latex text
This function can be used to generate latex strings from numberical values.example. num2latex(013.454e-0007) generates '1.35 \times 10^{-6}'
- 2 (All time)
- 2 (Last 30 days)
- -- / 5
- Community
-
5 Aug 2024
Output MATLAB data to formatted latex table (.tex)
Automatic creation of LaTeX styled tables from input
- 87 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
2 Oct 2017
Generates LaTeX source code for pdf-animations
AnimateLaTeX generates LaTeX source code for making pdf-animations using the "Animate Package for LaTeX". Run the script file "runAllExamples.m" in Matlab to run the examples. A pdf-file with the
- 11.5K (All time)
- 4 (Last 30 days)
- 5.0 / 5
- Community
-
11 Dec 2016
LaTeX editor by MATLAB.
- 93 (All time)
- 2 (Last 30 days)
- -- / 5
- Community
-
16 Apr 2026
Export matrices to LaTeX
This function writes you your MATLAB matrices as matrices in LaTeX. You could export several matrices at one with names attached.
- 825 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
19 Jul 2013
Toolbox for easier work with LaTeX file systems.
LatexManuscript collects system of LaTeX files into one LaTeX manuscript file, e.g. suitable for publishing papers in journals. The LaTeX files must be linked together by the '\input' command. The
- 2.8K (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
28 May 2009
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.
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
- 41 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
29 Aug 2021
Annotate labels, title and legend using LaTeX strings.
A single command to set the xlabel, ylabel, zlabel, title and legend strings, all at once. Moreover, it accepts LaTeX and TeX strings, so that equations and other symbols can be easily placed in the
- 409 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
18 Feb 2012
Matlab function to generate latex table same way as native Matlab table generator.
# table2latex## InstalationDownload form https://www.mathworks.com/matlabcentral/fileexchange/155182-table2latex and add it to your Matlab path.## DescriptionThis function is able to generate latex
- 237 (All time)
- 5 (Last 30 days)
- -- / 5
- Community
-
16 Jun 2025
Library to write Matlab variables into LaTeX
Library with functions to create strings with the LaTeX syntax and LaTeX files through Matlab.
Title: Matlab to LaTeX LibrarySummary: Library with functions to create strings with the LaTeX syntax and LaTeX files through Matlab.Description: My library of functions to handle with the creation
- 699 (All time)
- 1 (Last 30 days)
- 4.3 / 5
- Community
-
4 Sep 2024
Convert Excel files and MATLAB tables & cell arrays to LaTeX table code
A MATLAB function that reads content from an Excel file and converts it to LaTeX table code or converts a MATLAB table or cell array into LaTeX table code. LaTeX table code is referring to column
- 62 (All time)
- 3 (Last 30 days)
- -- / 5
- Community
-
18 Mar 2018
Translates a MATLAB matrix into a LaTeX table.
Modified matrix2latex, submitted by M. Koehler, to remove error checking in the 'alignment' parameter.This was done so that it could be used with the latex_trick.m function included seperately.
- 1.5K (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
12 Dec 2005
MATLAB array to LaTeX array converter with GUI.
This function converts an MATLAB 2-dimensional array (matrix) which can be numerical or a cell array, into proper formated LaTeX code. This utility is actually the GUI representation of M.Koehler
- 1.8K (All time)
- 1 (Last 30 days)
- 3.0 / 5
- Community
-
18 Sep 2006
latex2image(latexstr,outputfile)
Convert Latex String to an Image
latex2image - Convert a latex equation into an image. Usage: I = latex2image(latexstr); I = latex2image(latexstr,outputfile); Inputs: latexstr: Latex string to convert
- 276 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
29 Sep 2015
Change the font of certain elements within a LaTeX table string
This function takes a LaTeX table string and wraps individual elements with input prefixes and suffixes. This can be used to change the font of certain elements to highlight them, change them, remove
- 278 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
17 Mar 2014
This is a simple script to convert a MATLAB matrix to a LaTex table
The script when run with a matrix as an argument shall create a self-contained LaTex file which shall have the supplied matrix as a simple table. Useful for quickly writing the data into a LaTex
- 797 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
7 Apr 2011
Display a pretty latex-formatted version of a Matlab expression.
Pops up a figure with a pretty latex-formatted equation for a Matlab expression. Works for previous line in a script, previous command at command prompt, or for equations passed inline. The
- 1.5K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
18 Feb 2016
PDF file exportation with LaTeX text and symbols
PLOTPDFTEX renders all of the text in a Matlab figure with LaTeX (using LaPrint) and then saves it as a single pdf file for easy inclusion in a LaTeX document using pdflatex. This function is an
- 5K (All time)
- 1 (Last 30 days)
- 4.8 / 5
- Community
-
25 Jul 2008
LaTeX doc from directory of figures
Creates a LaTeX document to view a directory of MATLAB figures (.fig)
save2pdfhttp://www.mathworks.nl/matlabcentral/fileexchange/16179-save2pdfThen it generates a LaTeX document with slots for each .pdf. When you compile the .tex document, your output will contain all the figures.
- 227 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
26 Aug 2011
- 1.4K (All time)
- 3 (Last 30 days)
- 3.8 / 5
- Community
-
22 Apr 2016
mat2latextable - Generate LaTex table from matrix
Generate string containing LaTex table.
This is a very basic, but handy function to generate a LaTex table from a matlab matrix.The output is a string which is copied directly to the clipboard or to a Matlab string variable.
- 308 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
12 Mar 2019
- 73 (All time)
- 2 (Last 30 days)
- -- / 5
- Community
-
6 Nov 2018