Main Content

Work with Components

Insert and edit components in setup file to define report structure and content

Components are MATLAB® objects that specify the content of a report. Add components to a setup file to specify the types of content and the structure for a report. For details, see Components.

Report Components

expand all

Title PageInsert title page at beginning of report
Chapter/SubsectionGroup portions of report into sections with titles
ParagraphInsert paragraph text into report
TextFormat and insert text into report
CodeInsert text formatted as code in a paragraph
PreformattedInsert preformatted paragraph
HTML TextInsert HTML-formatted text into reports generated from a template
Line BreakInsert a line break
Page BreakInsert a page break
ListCreate bulleted or numbered list from cell array or child components
LinkInsert linking anchors or pointers into report
ImageInsert image from external file into report
Insert VariableInsert variable values into report
Figure SnapshotInsert snapshot of Handle Graphics figure into report
Axes SnapshotInsert image of selected MATLAB axes objects into the generated report
MATLAB Toolbox Version NumberInsert table that shows version and release numbers and release date of MathWorks products
Nest Setup FileAllow one report setup file (rpt file) to run inside another
Empty ComponentGroup components to move, activate, or deactivate them, or create blank space in list
Import FileImport ASCII text file into report
Handle Graphics Linking AnchorDesignate location to which links point
Handle Graphics NameInsert name of Handle Graphics object into the report
Handle Graphics ParameterInsert property name/property value pair from Handle Graphics figure, axes, or other object
TableInsert parent of table
Array-Based TableConvert rectangular array into table and insert it into report
Variable TableInsert table that displays all the variables in the MATLAB workspace
Table BodyInsert parent of table body
Table Column SpecificationSpecify table column properties
Table EntryInsert table entry
Table FooterInsert parent of table footer
Table HeaderInsert parent of table header
Table RowInsert parent of table row entries
MATLAB Property TableInsert table that includes MATLAB object property name/property value pairs
Handle Graphics Property TableInsert table that reports on property name/property value pairs
Handle Graphics Summary TableInsert table that summarizes Handle Graphics object properties
For LoopIteratively execute child components
While LoopIteratively execute child components while a specified condition is true
Logical IfSpecify logical if condition
Logical ThenSpecify a then condition for a Logical If component
Logical ElseSpecify an else condition for a Logical If component
Logical ElseifSpecify an elseif condition for a Logical If component
Graphics Object LoopRun child components for each Handle Graphics object open in MATLAB workspace
Figure LoopApply child components to specified graphics figures
Axes LoopRun child components for all axes objects in MATLAB workspace

Examples and How To

Working with the Report Explorer

Overview of the Report Explorer, the MATLAB Report Generator™ and Simulink® Report Generator graphical interface.

Maintain Interactive MATLAB Report

Describes MATLAB Report Generator interactive Report Generator software tasks previously used for creating a report .

Insert Components

In the Report Explorer, in the Outline pane, select the parent node of the component to be inserted.

Set Component Properties

Most components have properties that you can set to select optional features.

Move Components

In the Report Explorer, in the Outline pane, select the component that you want to move.

Delete Components

In the Report Explorer, in the Outline pane, select the component that you want to delete.

Deactivate Components

You can deactivate any component in a report setup.

Send Components to the MATLAB Workspace

You can send the components of a setup from the Report Explorer to the MATLAB workspace.

Edit Figure Loop Components

This example uses the Figure Loop, which is representative of many types of loops.

Define Report Variables

Use MATLAB variables for components.

Style Sheet Cells for Headers and Footers

Use style sheet cells to manage headers and footers in reports.



Explains what components are and how to use them.

Report Structure Components

Use report structure components to organize the content of your report into chapters, sections, paragraphs, lists, tables, and other standard document structure elements.

Table Formatting Components

Use table formatting components to organize generated content into tables.

Property Table Components

Use Property Table components to display property name/property value pairs in tables in generated reports.

Summary Table Components

Use Summary Table components to display information about specified objects in tables in generated reports.

Logical and Looping Components

Example of how to use the Figure Loop component to loop on Handle Graphics® figures

Set Component Properties

Most components have properties that you can set to select optional features.