This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Report Formatting

The DOM API supports, but does not require, use of templates to generate reports. As this example illustrates, you can use the API to create scripts that generate and format content without the use of templates. The price you pay is a script that is less efficient and maintainable than it would be if it uses templates.

IMPORTANT! Click the Open Script button on this page to use this example. This will download the example and its supporting files to your home directory.

Generate the Population Report

Click any of the following to generate the population report.

Edit the RPTPOP Function

1. Click edit('rptpop.m') to edit the rptpop function.

2. Click any of the following

to run the edited report.