Printing Variables to HTML Tables in Published Code

This file lets you display variables as HTML tables in your published MATLAB files.

https://github.com/gulley/HTML-Tables

You are now following this Submission

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

Categories

Find more on MATLAB Report Generator in Help Center and MATLAB Answers

General Information

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.

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.