Stateflow    
Utility and Convenience Methods

Utility and convenience properties maintain the infrastructure of the Stateflow API and also provide useful intermediate services for using the Stateflow API.

See also Utility and Convenience Properties.

For a key to the abbreviations for object types in the Object column, see Reference Table Column Descriptions.

Method
Description
Objects
classhandle
Return a read-only handle to the class (object type) used to define this object.
All
defaultTransitions
Return the default transitions in this chart at the top level of containment.
C S B F
dialog
Display the Properties dialog of this object.
M C S B F N T J D E X
find
Return objects of this object that meet the criteria specified by the arguments.
All
findDeep
Return all objects of the specified type in this object at all levels of containment (i.e., infinite depth).
R M C S B F
findShallow
Return all objects of the specified type in this object at only the first level of containment (i.e., first depth).
R M C S B F
get
Display the property settings of this object.
All
help
Display a list of properties for this object with short descriptions. Used with all objects except the Root and Machine object.
All
innerTransitions
Return the inner transitions that originate with this object and terminate on a contained object.
S B F
methods
Return the methods of this object.
All
outerTransitions
Return an array of transitions that exit the outer edge of this object and terminate on an object outside the containment of this object.
S B F
sfclipboard
Return a handle to the Clipboard object.
None
sfexit
Close all Stateflow diagrams and Simulink models containing Stateflow diagrams, and exit the Stateflow environment.

    Caution    Executing the sfexit method causes all models in Simulink to close without a request to save.

None
sfhelp
Display Stateflow online help in the MATLAB Help browser.
None
sfnew
Create and display a new Simulink model containing an empty Stateflow block.
None
sfprint
Print the visible portion of a Stateflow diagram.
None
sfroot
Return a handle to the Root object.
None
sfsave
Save the current machine and Simulink model.
None
sfversion
Return the current version of Stateflow.
None
stateflow
Open the current Stateflow model window.
None
sourcedTransitions
Return all inner and outer transitions whose source is this object.
S B F J
struct
Return a MATLAB structure containing the property settings of this object.
C S B F N T J D E X
view
Display this object in a Stateflow diagram editor.
C S B F N T J D E X


  Deployment Methods Graphical Methods