HTMLtable

Generate the code for a CSS/HTML-based data table from an input numeric, string, or cell array with many available formatting options.
264 Downloads
Updated 13 Jan 2022

Generate the code for an CSS/HTML-based data table from an input numeric, string, or cell array.
The generated HTML code is compatible with any browser and app designer ('HTMLSource' for an HTML element).
With 60 user adjustable parameters, and multiple accepted input formats, the table can be customized in virtually any way.
All parameters are invoked via name-value pairs and validated.

Please read the description at the beginning of the function for details of the arguments and examples.

This function does not support nested tables, i.e., cells within cells, as many parameters need to be matched to the width or height of the table.

Cite As

Eric Dziekonski (2024). HTMLtable (https://github.com/Neopentane1/HTMLtable/releases/tag/v1.0.3), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Html Table Writer, Display data as an HTML table

Inspired: Model Review Tool

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.3

See release notes for this release on GitHub: https://github.com/Neopentane1/HTMLtable/releases/tag/v1.0.3

1.0.2

Updated to prevent premature shortcutting of the data font/background colors

1.0.1

Implemented the str2func suggestion by Stephen Cobeldick to get rid of any eval functions. Several bug fixes,

1.0.0

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.