Printing Variables to HTML Tables in Published Code

This file lets you display variables as HTML tables in your published MATLAB files.
3.5K Downloads
Updated 17 Mar 2023

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 (2024). Printing Variables to HTML Tables in Published Code (https://github.com/gulley/HTML-Tables), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on MATLAB Report Generator in Help Center and MATLAB Answers
Acknowledgements

Inspired: im2html.m

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
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.

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.