To set up the magic squares report, first create a setup file to store the setup. Then add MATLAB® objects, called components, to the setup to specify the report content.
To create the report setup file:
Start a MATLAB software session.
Open the Report Explorer. From the MATLAB Toolstrip, in the Apps tab, in the Database Connectivity and Reporting section, click Report Generator.
Select File > New to create a report setup file. The new report setup has the default name Unnamed.rpt.
In the Properties pane on the right:
To save the report in the current working folder, select Present working directory from the Directory list.
Set File format to web (HTML) to create the report as an HTML file.
In the Report description text box, replace the existing text with the following text.
This report creates a series of magic squares and displays them as images. A magic square is a matrix in which the columns, rows, and diagonal all add up to the same number.
Save your report. Select File > Save As and name your report setup file magic_squares.rpt.
The new file name appears in the Outline pane.
To create the content for the report, see Add Report Content Using Components.