struct

Return MATLAB structure containing property settings of object

Syntax

propList = thisObject.struct

Description

The struct method returns and displays a MATLAB® structure containing the property settings of this object.

Note

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.

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

Examples

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.

Introduced before R2006a