User`s guide

Create a Report Program
13-3
Create a Report Program
The MATLAB Report Generator includes a set of functions, called the DOM (Document
Object Model) API, that allows you to generate Word, HTML, and PDF reports
programmatically. For example, the following MATLAB script uses the API to generate
and display an HTML report displaying today’s date.
import mlreportgen.dom.*;
report = Document('today');
append(report, ['Today is ', date, '.']);
close(report);
rptview(report.OutputPath);
To get started learning about creating reports with the DOM API, see “Document Object
Model” on page 13-4.
More About
“Document Object Model” on page 13-4