MATLAB Report Generator | ![]() ![]() |
Category
Description
The Model Variables component creates a table that shows all workspace variables used by reported blocks in a Simulink model. The current model and systems in which the blocks appear are specified in the Model Loop component.
For example, a Simulink Gain block might have a string x instead of a number. Simulink looks for a variable x in the workspace.
Attributes
This is the Model Variables attribute page.
Note To view a component attribute page in the Setup File Editor, select the component in the setup file outline on the left and click on the Options tab. If the component is not in the setup file outline, you must add it to the outline first. See Building and Editing the Setup File for a discussion on how to add a component to the outline. |
Include Variables
This context-sensitive frame shows that this component is reporting on variables in reported blocks in the current model.
LoadExternalInput |
ExternalInput |
SaveTime |
TimeSaveName |
SaveState |
StateSaveName |
SaveOutput |
OutputSaveName |
LoadInitialState |
Initial State |
SaveFinalState |
FinalStateName |
Table Columns
The options in this section specify the information included in the table. The first column is always Variable Name.
[MxN CLASS]
. For example, if you have a 300-by-200 double array, it will display in the report as [300x200 DOUBLE
].TunableVars
property to see if any of the model variables specify their storage class. If the storage class is specified, then the model variables table displays TunableVarsStorageClass
and TunableVarsTypeQualifier
in a table column. The column entries are TunableVarsStorageClass (TunableVarsTypeQualifier
) if TunableVarsTypeQualifier
is not empty. If TunableVarsTypeQualifier
is empty, the column entry is TunableVarsStorageClass
.StorageClass
are:Table Display
Example
This is an example of a table created by the Model Variables component. This property table is reporting on the variables in the Controller
in the F14 demo model.
Variable Name |
Parent Blocks |
Calling string |
Value |
Ka |
Ka |
||
Kf |
Kf |
||
Ki |
|||
Kq |
Kq |
Insert anything into report?
Filename
![]() | Model Simulation | Object Linking Anchor | ![]() |