Main Content

Components

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 interactively combined 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:

You used a combination of the following types of components in your report setup file, based on your goals for the report.

Type of ComponentDescription
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.

Component Formatting

When you generate a report, in the Report Options dialog box, in the File format field you specify the type of report output you want. For example, you can generate a report in PDF, HTML, or Microsoft® Word format.

For each format, you can choose to apply styles from either of these style definition sources:

  • An HTML or Word report conversion template

  • A Model Explorer style sheet for HTML, Word, or PDF.

The output format and the associated template or style sheet that you select for a report determines most aspects of the formatting of the generated report. For example, a report template or style sheet typically uses different font sizes for chapter titles and section titles. For details, see Report Output Format.

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.