simulink.multisim.Variable
Description
The simulink.multisim.DesignStudy
object represents a design
study that allows you to run multiple simulations at a large scale. With the
simulink.multisim.Variable
object, you can specify variables and their
values for massive simulations using parameter combinations.
Creation
Syntax
Description
sets the value of the variable simVars
= simulink.multisim.Variable(varname
,varvalue
)varname
to the value
varvalue
for the simulation configured using the
simulink.multisim.Variable
object. Use this syntax to specify values
for variables in the base workspace or data dictionaries. The variable values you specify
override the variable values saved in the base workspace or data dictionary during
simulation and are reverted when the simulation completes.
You can specify values for multiple variables on a
simulink.multisim.Variable
object. Specify the value for each variable
one at a time.
sets the value of the variable simVars
= simulink.multisim.Variable(varname
,varvalue
,Workspace=mdl
)varname
in the model workspace of the
model mdl
.
By default, when you do not specify the Workspace
argument,
variables are scoped to a global workspace specific to each object. Variables in the
global workspace override variables with the same name in the base workspace and in data
dictionaries but not in the model workspace.
Input Arguments
Output Arguments
Properties
Version History
Introduced in R2024a