Display data as an HTML table

Display a matrix or cell array as a HTML formatted table

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This is intended to be a simple way to display 2D or 3D table data with support for row and column labels.

It can also save the HTML code to a file, which can then be used elsewhere.

The function supports nested tables.

Cite As

Gus Brown (2026). Display data as an HTML table (https://uk.mathworks.com/matlabcentral/fileexchange/18329-display-data-as-an-html-table), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: HTMLtable

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

I have Zipped the file to avoid any download problems. I think the presence of HTML code in the file prevents it from being downloaded correctly.