MATLAB Report Generator | ![]() ![]() |
Category
Description
The Insert Variable component takes one of the following variables and inserts its value (and name, if you choose to do so) into the report:
Attributes
This is the Insert Variable 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. |
Variable to Include
Workspace - this options gets a variable from the MATLAB workspace.
MAT-file - this option gets a variable from a binary file with a .MAT extension.
Global variable - this option gets a global variable.
%<VariableName>
to insert the value of a variable from the MATLAB workspace. For example, if you enter the following expression in this field%<my_variable>
%<velocity>
in this field, and your MATLAB workspace contains the same information, then your report will also contain 50
.Render Options
Value -
displays the value of the variable only (e.g., if the variable is velocity
, and its value is 25
, only 25
is displayed).
Name: Value -
displays the variable name, followed by the value of the variable (e.g., Velocity: 25
)
NAME Value - displays the variable name in italics, followed by the value of the variable (e.g., Velocity 25
)
You can choose how the variable appears in the report in the first drop box in this section:
You can choose how a variable array appears in the report in the second drop box in this section:
to display large variable arrays as "[MxN CLASS]"
. For example, if you have a 300-by-200 double array, it will display in the report as [300x200 DOUBLE
].
Insert anything into report?
Filename
![]() | Evaluate MATLAB Expression | MATLAB/Toolbox Version Number | ![]() |