Skip to Main Content Skip to Search
Product Documentation

Simulink Workspace Variable - Report information about MATLAB and model workspace variables that model uses

Description

This component provides information about variables in the MATLAB (base) workspace and the model workspaces that a model uses. The report includes the value of each variable. Optionally, you can include the following information for each variable:

For variables that are Simulink data objects (for example, a Simulink.Parameter object), the report includes the properties of the object. You can filter out properties to streamline the report.

Options

The following two options specify additional information that the report can include about each variable:

For variables whose values are Simulink data objects, you can filter which properties to include in the report, using one of the following approaches:

The Filter Properties area of the dialog box, where you specify a standard filter, has these fields:

To create and apply custom filtering MATLAB code, select the Use custom property filter check box. Selecting this check box opens an edit box where you define a MATLAB function for filtering properties. The edit box includes a sample function (commented out) that you can use as a starting point for your filtering function. Use the isFiltered variable for the output of your function. For example:

If you clear the Use custom property filter check box, Simulink Report Generator saves your custom MATLAB filtering code, but does not use that code to filter properties.

Insert Anything into Report?

Yes. List.

Class

rptgen_sl.csl_ws_variable

See Also

Simulink Workspace Variable Loop, Bus, Simulink Functions and Variables

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS