Stateflow User's Guide Previous page   Next Page
Stateflow.EMFunction

Constructor for creating an Embedded MATLAB function

Syntax

Description

The Stateflow.EMFunction method is a constructor method for creating an Embedded MATLAB function in a parent chart, state, box, or graphical function. It returns a handle to the EMFunction object for the new Embedded MATLAB function.

Arguments

parent
Handle to parent chart or state of the new Embedded MATLAB function

Returns

efunction_new
Handle to a Function object for the new Embedded MATLAB function

Example

If sA is a handle to a State object for the existing state A, the following command creates a new Embedded MATLAB function parented (contained by) state A:

The new Embedded MATLAB function is unnamed and appears in the upper left corner inside of state A in the diagram editor. efunction_new is a handle to the EMFunction object, which you use to rename the function, set its properties, and execute its methods.


Previous page  Stateflow.Data Stateflow.Event Next page

© 1994-2005 The MathWorks, Inc.