User`s guide

2 Create Your First Report
2-2
Create a MATLAB Report
This example shows how to create a report that explains and illustrates magic squares –
matrices whose columns, rows, and diagonals each add up to the same number (see the
magic function reference in the MATLAB documentation).
To create this report, you perform these main tasks:
“Create a Report Setup File” on page 2-3
“Add Report Content Using Components” on page 2-5
Note: You do not need to know the MATLAB software to use this example. However,
knowledge of MATLAB is helpful for understanding the MATLAB code that executes
during report generation.
This example includes separate sections for different kinds of report creation and
generation tasks. Each section builds on the previous sections. However, if you want to
work through a later section without having done the previous sections, you can view the
completed report setup file: Magic Squares Report.