LaTeX table creation.

Function for converting numeric or cell arrays to LaTeX table.

You are now following this Submission

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 horizontal and vertical lines, as well as load and save settings.

Information regarding operate the function are contained in the comments, but here is a quick example:
>> latextable(rand(3,3),'Horiz',{'1','2','3'},'Hline',[0,1,NaN]);

I hope this function is useful for some people. I am sure there are probably a few bugs, so please let me know if you find any problems.

Cite As

Andrew (2026). LaTeX table creation. (https://www.mathworks.com/matlabcentral/fileexchange/24387-latex-table-creation), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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