| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink Report Generator |
| Contents | Index |
| Learn more about Simulink Report Generator |
| On this page… |
|---|
You can export a model to a Web view using either a Simulink Report Generator dialog box or a Report Explorer pane.
| To Open the export interface from ... | Use ... | Export interface opens as... |
|---|---|---|
| Report Explorer | Tools > Export to Web | Report Explorer |
| Simulink model window | File > Export to Web | Dialog box |
| Stateflow editor | File > Export to Web | Dialog box |
| Command line | The slwebview function, with no arguments | Report Explorer |
You can set options that specify which Simulink systems or Stateflow charts to export to a Web view, including:
Whether to export Simulink systems or Stateflow charts that include (or are children of) the current system or chart. For more information, see Include Systems.
Which masked blocks, if any, to include. For more information, see Look Under Masks.
Whether to follow links to library blocks. For more information, see Follow Library Links.
Whether to follow model reference blocks. For more information, see Follow Model Reference Blocks.
Tip This section describes how to specify Web view export options using the Web Views dialog box. For information about how to specify these options using the command line, see the slwebview function reference page. |
Specifies which Simulink systems or Stateflow charts to export.
| Include Systems Option Value | Meaning |
|---|---|
| Current | Export only the Simulink system that is open in the model window or the Stateflow chart that is open in the diagram editor |
| Current and above | Export the current Simulink system or Stateflow chart and all systems or charts that contain it |
| Current and below | Export the current Simulink system or Stateflow chart and all subsystems or subcharts that it contains |
| All (Default) | Export all Simulink systems or Stateflow charts in the model |
This option is available only when you choose Current and below or All for Include Systems. It specifies which masked blocks, if any, to export from Simulink subsystems or Stateflow subcharts.
| Look Under Masks Option Value | Meaning |
|---|---|
| No masked blocks | Do not export any masked blocks |
| Masks with no workspace and no dialog (Default ) | Export only graphical masked blocks—those that have no workspaces and no dialog boxes |
| Masks with no dialog | Export only functional masked blocks—those that have no dialog boxes |
| All masked blocks | Export all masked blocks |
Specifies whether to follow links into library blocks.
| Follow Library Links Option Value | Meaning |
|---|---|
| Selected | Follow links into library blocks |
| Unselected (Default) | Do not follow links into library blocks |
Specifies whether to follow links into referenced models.
| Follow model reference blocks Option Value | Meaning |
|---|---|
| true | Follow links into referenced models |
| false (Default) | Do not follow links into referenced models |
The Web view export process exports the system or chart that is visible at the time you click Export Model. If you change the visible system or chart while the Report Explorer Web view export pane is visible, the Report Explorer pane does not automatically change to show information about the newly visible system. To update the Report Explorer pane, click Refresh.
The Web view export dialog box or the Report Explorer displays a list of layers—that is, Simulink systems or Stateflow charts—to export. The list of layers depends on the export options you specify, as described in Setting Export Options.
To generate a Web view of all layers in the model, click OK in the Web View dialog box, or click Export Model in the Report Explorer pane. This action generates two sets of files in the current MATLAB folder:
An HTML file to appear in a Web browser.
A folder with the same name as the HTML file. This folder contains supporting files, such as svg and png files.
To send the Web view to another computer, include both the HTML file and the folder of supporting files. Package these items into a zip file for transfer.
When you generate a Web view, it appears in a Web browser by default. You can suppress the display by setting the 'ViewFile' option to false.
![]() | What Are Web Views? | Navigating Web Views | ![]() |

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 |