MATLAB Report Generator | ![]() ![]() |
Component Descriptions
The components in the setup file outline determine the information contained in the report. The following sections show the information each component in the outline inserts into the report.
Report Component
The first component in the setup file outline is always the Report component. The Report component specifies output options, including output file format. The default output format is HTML. The Report component does not insert any visible output into the report.
Paragraph Component
The next component in the setup file outline is a Paragraph component. The Paragraph component inserts the following paragraph in the report.
Evaluate MATLAB Expression Component
The third component in the setup file outline is an Evaluate MATLAB Expression component. This is represented in the outline by
This component evaluates the following M-code
%Evaluate PEAKS in the base workspace. %This clears other open figures. close all %This creates the figure. peaks %This sets the figure print size to 5x4 inches set(gcf,... 'PaperPosition',[1 1 5 4],... 'PaperUnits','inches');
and inserts the command-line output in the report.
z = 3*(1-x).^2.*exp(-(x.^2) - (y+1).^2) ... - 10*(x/5 - x.^3 - y.^5).*exp(-x.^2-y.^2) ... - 1/3*exp(-(x+1).^2 - y.^2)
Graphics Figure Snapshot Component
The fourth component in the setup file outline is the Graphics Figure Snapshot component. The Graphics Figure Snapshot component inserts a snapshot of the current figure into the report. Since the Evaluate MATLAB Expression component created the Peaks
image, it is the current image and is inserted into the report.
Figure Property Table Component
The last component in the setup file outline is the Figure Property Table component. The Figure Property Table component inserts a table of selected Handle Graphics® figure property name/property value pairs for the Peaks image.
![]() | Generating and Viewing the Report | What's in This Manual | ![]() |