Stateflow | ![]() ![]() |
Return a MATLAB structure containing the property settings of this object
Syntax
Description
The struct
method returns and displays a MATLAB structure containing the property settings of this object.
Arguments
transitions |
The object for which to display property settings. Can be any Stateflow object type. |
Returns
propList |
MATLAB structure listing the properties of this object |
Example
If State object sA
represents a state A
, the command x = sA.struct
returns a MATLAB structure x
. You can use dot notation on x
to report properties or set the values of other variables. For example, the command y=x.Name
sets the MATLAB variable y
to the value of the Name
property of state A
, which is 'A'
. The command x.Name = 'Kansas'
sets the Name
property of x
to 'Kansas'
but does not change the Name
property of state A
.
![]() | stateflow | view | ![]() |