Store information about workspace variables and blocks that use them
Simulink.WorkspaceVar is not recommended. Use Simulink.VariableUsage instead.
A Simulink.WorkspaceVar object describes attributes of a
workspace variable and lists the blocks that use the variable.
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.
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.