Skip to Main Content Skip to Search
Product Documentation

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.

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.

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS