MATLAB Report Generator    
Insert Variable

Component

Insert Variable

Category

MATLAB

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.

Variable to Include

Variable location
Select one of the following options:

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.

Variable name
Enter the name of the variable in this field.
You can use %<VariableName> to insert the value of a variable from the MATLAB workspace. For example, if you enter the following expression in this field

Render Options

Name display
Select one of the options listed below to display the variable in the report:

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:

Insert anything into report?

Yes. Text.

Filename

cmlvariable


  Evaluate MATLAB Expression MATLAB/Toolbox Version Number