Main Content
union
Return union of two arrays of Simulink.VariableUsage
objects
Description
returns an array that is a combined set of the variables from VarsOut
= union(VarsIn1
,VarsIn2
)VarsIn1
and
VarsIn2
, which are arrays of Simulink.VariableUsage
objects. The output array does not contain duplicates. If
a variable is described by a Simulink.VariableUsage
object in
VarsIn1
and in VarsIn2
, the function returns a
Simulink.VariableUsage
object that stores the variable usage
information from both objects in the Users
property.
To create Simulink.VariableUsage
objects that describe
the usage of variables in a model, use the Simulink.findVars
function.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2019b