Components are MATLAB® objects that specify the content of a report. Add components to specify the types of content that commonly occur in reports. The MATLAB Report Generator™ provides a set of components for specifying the types of content that commonly occur in MATLAB-based reports. The Simulink® Report Generator provides additional components to facilitate generation of reports from Simulink models. You can also create custom components to handle content specific to your application.
Using the Report Explorer, you can interactively combine components to create a report setup that specifies the content of a particular report or type of report. For general information about working with components, see:
Use a combination of the following types of components in your report setup file, based on your goals for the report.
|Type of Component||Description|
|Report Structure Components|
Include a title page, chapters, sections, paragraphs, lists, tables, and other standard document structure elements.
|Table Formatting Components|
Organize generated content into tables.
|Property Table Components|
Display tables with property name/property value pairs for objects.
|Summary Table Components|
Display tables with specified properties for objects.
|Logical and Looping Components|
Run child components a specified number of times. There are several looping components, including logical loops and Handle Graphics® loops.
When you generate a report, a stylesheet formats the content specified by these components to reflect the document organization. For example, a report stylesheet typically uses different font sizes for chapter titles and section titles.
In the report setup, specify the stylesheet to use to format your report . You can change the format of your report by modifying the specified stylesheet or selecting another stylesheet. For details, see Report Output Format and Stylesheet.
The output format and the stylesheet that you select for a report determines most aspects of the formatting of the generated report. For details, see Report Output Format and Stylesheet.
Several components include properties that you can set to specify formatting details for that specific instance of a component. For example, for the MATLAB Property Table, you can specify formatting such as whether to display table borders or the alignment of text in table cells.