Simulink.WorkspaceVar
Store information about workspace variables and blocks that use them
Simulink.WorkspaceVar is not recommended. Use Simulink.VariableUsage instead.
Description
A Simulink.WorkspaceVar object describes attributes of a
workspace variable and lists the blocks that use the variable.
Creation
The Simulink.findVars function returns one or more
Simulink.WorkspaceVar objects that embody the results of
searching for variables.
Only the Simulink.WorkspaceVar function can set any field value in
a Simulink.WorkspaceVar object. The fields are otherwise
read-only.
Description
varObj = Simulink.WorkspaceVar(
creates an array of varNames,wkspName)Simulink.WorkspaceVar objects to describe
the variables varNames. The constructor sets the
Name property of each object to one of the variable names
specified by varNames, and sets the
Workspace property of all the objects to the workspace
specified by wkspName. You can specify
varNames with variables that are not used in any loaded
models.
Input Arguments
Properties
Examples
Version History
Introduced in R2010a