This file lets you display variables as HTML tables in your published MATLAB files.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Editor's Note: This file was selected as MATLAB Central Pick of the Week
One often-requested feature for Cell Mode publishing is to have a command that simply displays the output of a MATLAB® variable as a table. This file shows how to do that.
Cite As
Ned Gulley (2026). Printing Variables to HTML Tables in Published Code (https://github.com/gulley/HTML-Tables), GitHub. Retrieved .
Acknowledgements
Inspired: im2html.m
General Information
- Version 1.5.0.0 (285 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.5.0.0 | Moving to GitHub |
||
| 1.4.0.0 | BGCOLOR attribute for table cells has been deprecated in HTML. Switched code to use STYLE's BACKGROUND attribute instead. |
||
| 1.3.0.0 | Updated copyright line. |
||
| 1.2.0.0 | Fix copyright line. |
||
| 1.1.0.0 | Minor formatting change. |
||
| 1.0.0.0 | New publishing functionality simplifies the code. |
