You can generate MATLAB® code versions of report setup files
in the form of a MATLAB file (
*.m). A MATLAB file
of a report setup file is useful for various purposes, including generating
reports and modifying report setup files programmatically.
To generate a MATLAB file, load a report setup file into the Report Explorer and click File > Generate MATLAB File. After the MATLAB file generates, it opens in the MATLAB Editor. The filename for the generated file is the file name of the report setup file , preceded by "build."
Generate Reports from MATLAB Files
This example generates a MATLAB file from the
setup file, which is part of the MATLAB Report Generator™ software.
The example then uses the
report function to
generate a report from the MATLAB file. For more information
about this function, see the
Start the Report Explorer by entering
the MATLAB Command Window.
In the Options pane in the middle, double-click
open its report setup file.
In the Outline pane on the left, click
- figloop_tutorial.rpt to select it.
In the Report Explorer menu bar, click File > Generate MATLAB File.
The MATLAB Report Generator software generates MATLAB code
figloop_tutorial.rpt report setup file.
It saves this code in the
in the folder you specify. Part of this file appears in the following
To generate the
from this MATLAB file, run the following command in the MATLAB Command