convert classdef, table, plot, ... to html as a report
Version 1.0.0.0 (6.86 KB) by
Roland
Check out the "help html", testhtml.m and TestObj and ultimately the code to see how it works.
%Example 1
evalc(html.tags('h1','p','em','br','strong'));
h = html(html.HEAD,H1('htmltest'),P(' some ',BR(),EM('text'),BR(),STRONG('this is strong')));
h.rep('title','htmltest');
h.write('htmltest.html');
%Example 2
html.reset_imgfiles();
rn = TestObj();
rn.run();
rnr = html.iterobj(rn,2);
h = html(html.HEAD,'<h1>Device X1</h1>',rnr);
h.rep('title','X1');
h.write('X1.html');
html.reset_imgfiles();
Cite As
Roland (2026). convert classdef, table, plot, ... to html as a report (https://in.mathworks.com/matlabcentral/fileexchange/49969-convert-classdef-table-plot-to-html-as-a-report), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on MATLAB Report Generator in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
