| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Stateflow |
| Contents | Index |
| Learn more about Stateflow |
| On this page… |
|---|
By default, Stateflow software scales each chart that you print to fit on a single page. If you prefer to print charts without scaling to preserve clarity and detail, you can use tiled printing, as described in Using Tiled Printing for Stateflow Charts.
To print scaled charts, follow these steps:
In the Stateflow Editor, select File > Print.
The Print Model dialog box appears:

In the Print Model dialog box, select your printer and number of copies.
Select the charts you want to print by choosing one of these options:
| Option | Description |
|---|---|
| Current system | Prints the current chart or subchart |
| Current system and above | Prints the current chart or subchart and all systems above it in the model hierarchy |
| Current system and below | Prints the current chart or subchart and all systems below it in the model hierarchy, with the option of looking into the contents of masked and library Simulink blocks |
| All systems | Prints all systems in the model hierarchy, with the option of looking into the contents of masked and library Simulink blocks |
Customize your print job as needed using these options:
| Option | Description |
|---|---|
| Enable tiled printing for all systems | Enables tiled printing for all charts and overrides any individual tiled-print settings. See Using Tiled Printing for Stateflow Charts. |
| Include Print Log | Includes a list of all printed charts. |
| Look under mask dialog | Prints the contents of Simulink masked subsystems when encountered at or below the level of the current chart or subchart (when printing Current system and below) or the top-level system (when printing All systems). |
| Expand unique library links | Prints the contents of library blocks that appear in Simulink subsystems that are printed with Current system and below or All systems. |
| Frame | Prints a title block frame with each chart. To learn how to create print frames, see PrintFrame Editor Overview in the Simulink User's Guide. |
Click OK.
For more information about all print options, see Printing a Block Diagram in the Simulink software documentation.
Stateflow charts support Simulink tiled printing options (see Tiled Printing in the Simulink documentation). Tiled printing enables you to print Stateflow charts without scaling to fit a page and, therefore, without sacrificing clarity and detail. With tiled printing, you can distribute a chart over a specified number of pages and, therefore, control the total size of the printed image. You can choose different tiled-print settings for each of your charts to customize the appearance of all printed images.
If you want to scale charts to fit on a single printed page, see Printing Scaled Charts.
To print Stateflow charts on tiled pages, follow these steps:
Open the chart or subchart you want to print.
In the Stateflow Editor, select File > Enable Tiled Printing.
To enable tiled printing for all systems in your model, select the Enable tiled printing for all systems check box on the Print dialog box
To visualize the chart's size and layout with respect to the page, select View > Show Page Boundaries.
If your chart is too large to fit on one page, the Stateflow Editor displays the page boundaries as tiles in a checkerboard pattern, as in this example:

In this chart, state #6 extends beyond the page boundary. To correct the problem, you can select and drag this state to a different tile so that it prints in its entirety on a separate page.
Select File > Print.
By default, this command prints all of a system's tiled pages. Alternatively, you can specify a range of tiled page numbers to print. See Printing Tiled Pages in the Simulink documentation.
The Print Details report is an extension of the Print Details report in the Simulink model window. It provides a report of Stateflow and Simulink objects relative to the chart currently in view in the Stateflow Editor from which you select the report.
To generate a model report on chart objects, follow these steps:
In the Stateflow Editor, select File > Print Details.
The Print Details dialog box appears as follows:

Enter the destination directory of the report file and select options to specify what objects appear in the report.
For details on setting the fields in the File locations/naming options section of this dialog box, see Generating a Model Report in the Simulink software documentation. For details on the report you receive from the option you choose in the System reporting options section, see System Report Options and Report Format.
The Print Details dialog box appears and tracks the activity of the report generator during report generation. See Generating a Model Report in the Simulink software documentation for more details on this window.
If no serious errors occur, the HTML report appears in your default browser.
Note You can also use MATLAB® Report Generator™ software to generate a report that documents an entire model, including both Simulink and Stateflow objects. See the MATLAB Report Generator User's Guide. |
Reports for the current Stateflow chart vary with your choice of one of the System reporting options fields:
Current — Reports on the chart or subchart in the current Stateflow Editor and its immediate parent Simulink system.
Current and above — This option is grayed out and unavailable for printing chart details in the Stateflow Editor.
Current and below — Reports on the chart or subchart in the current Stateflow Editor and all contents at lower levels of the hierarchy, along with the immediate Simulink system.
Entire model — Reports on the entire model including all charts and all Simulink systems.
If you select this option, you can modify the report as follows:
Look under mask dialog – Includes the contents of masked subsystems in the report.
Expand unique library links – Includes the contents of library blocks that are subsystems in the report.
The report includes a library subsystem only once even if it occurs in more than one place in the model.
The general top-down format of the Print Details report is as follows:
The report shows the title of the system in the Simulink model containing the chart or subchart in current view in the Stateflow Editor.
A representation of Simulink hierarchy for the containing system and its subsystems follows. Each subsystem in the hierarchy links to the report of its Stateflow charts.
The report section for the Stateflow charts of each system or subsystem begins with a small report on the system or subsystem, followed by a report of each contained chart.
Each chart report includes a reproduction of its chart with links for subcharted states that have reports of their own.
An appendix tabulates the covered Stateflow and Simulink objects in the report.
The Print Current View option prints an individual chart or subchart as follows:
In the submenu, choose one of these options:
To File — Converts the current view to a graphics file.
Select the format for the graphics file from a submenu of graphical file types.
To Clipboard — Copies the current view to the system clipboard.
Select the format for the clipboard copy from a submenu of graphical formats.
To Figure — Converts the current view to a MATLAB figure window.
To Printer — Prints the current view on the current printer.
You can also print the current view from the MATLAB command line using the sfprint function.
![]() | Using Notes to Extend Charts | Defining Data | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |