Return MATLAB structure containing property settings of object
propList = thisObject.struct
struct method returns and displays a MATLAB® structure
containing the property settings of this object.
You can change the values of the properties in this structure just as you would a property of the object. However, the MATLAB structure is not a Stateflow® object and changing it does not affect the model.
The object for which to display property settings. Can be any Stateflow object type.
MATLAB structure listing the properties of this object
If State object
sA represents a state
x = sA.struct returns a MATLAB structure
You can use dot notation on
x to report properties
or set the values of other variables. For example, the command
the MATLAB variable
y to the value of the
A, which is
x.Name = 'Kansas' sets the
'Kansas' but does not
Name property of state