Functional Report

This example illustrates a functional approach to creating a report generator based on the DOM API. It uses the DOM API to create a MATLAB function, rptmagic, that generates a PDF, HTML, or a Microsoft Word report on a specified set of magic squares.

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 a Report

1. Open this example if it is not already open.

2. Generate an HTML, Word, or PDF report on four magic squares as follows: