LaTeX table creation.
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 (2024). LaTeX table creation. (https://www.mathworks.com/matlabcentral/fileexchange/24387-latex-table-creation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Language Fundamentals > Data Types > Numeric Types >
- MATLAB > Language Fundamentals > Data Types > Cell Arrays >
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > LaTeX >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |