makeLatexTable
Version 1.0.2 (8.98 KB) by
Pierre Petitet
Generate an output summary table in LATEX format for linear models (fitlm, fitlme).
Function inspired by the package 'stargazer' in R.
Automatically generate a summary table in latex format for the output of the functions fitlm, fitglm, fitlme, fitglme. Multiple outputs can be combined together in a single table (outputs appear as separate columns). By default, the table caption includes the formula of each model.
Options include:
- setting column names
- setting which information to include (PE, SE, p-val, t-stat, F-stat, n, adj-R2, BIS, AIC)
- number of digits for rounding
- label
- orientation (vertical, rotated)
- renaming specific elements in the table
An example script demonstrates how to use the functions.
Cite As
Pierre Petitet (2026). makeLatexTable (https://www.mathworks.com/matlabcentral/fileexchange/77774-makelatextable), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2020a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
