Documentation Center

  • Trial Software
  • Product Updates

Variables

Assign variable values using model workspace, symbols, data objects, and data classes

Functions

getVariable Get value of variable from workspace
hasVariable Determine if variable exists in workspace
intersect Returns intersection of two vectors of Simulink.VariableUsage objects
setdiff Returns difference between two vectors of Simulink.VariableUsage objects
Simulink.findVars Variables found in models and blocks
matlab.io.saveVariablesToScript Save workspace variables to MATLAB script
set_param Set system and block parameter values
get_param Get parameter names and values

Classes

Simulink.ModelWorkspace Describe model workspace
Simulink.WorkspaceVar Contains information about workspace variables and blocks that use them
Simulink.VariableUsage Get information about workspace variables and blocks that use them
Was this topic helpful?