Stateflow User's Guide Previous page   Next Page

Embedded MATLAB Function Properties

Stateflow API objects for Embedded MATLAB Functions have the properties listed in the table below. See also Embedded MATLAB Function Methods.

Property
Type
Access
Description
ArrowSize
Double
RW
Size of transition arrows coming into the Embedded MATLAB function in the Stateflow diagram (default = 8). Equivalent to selecting Arrowhead Size from the context menu for this function.
BadIntersection
Boolean
RO
If true, this Embedded MATLAB function graphically intersects a state, box, graphical function, truth table, or other Embedded MATLAB function.
Chart
Chart
RO
Chart object containing this Embedded MATLAB function.
Description
String
RW
Description of this Embedded MATLAB function (default = ''). Equivalent to entering a description in the Description field of the properties dialog for this Embedded MATLAB function.
Document
String
RW
Document link to this Embedded MATLAB function. Equivalent to entering the Document Link field of the properties dialog for this Embedded MATLAB function.
FontSize
Double
RW
Size of the (default = 12) font of the label text for this Embedded MATLAB function. This property overrides the font size set for this Embedded MATLAB function at creation by the StateFont.Size property of the containing Chart object. Equivalent to selecting Font Size > font size in the context menu for this Embedded MATLAB function.
Id
Integer
RO
Unique identifier assigned to this Embedded MATLAB function to distinguish it from other objects in the model.
LabelString
String
RW
Full label for this Embedded MATLAB function (default = '()') including its return, name, and arguments. Equivalent to typing the label for this Embedded MATLAB function in its label text field in the diagram editor.
Machine
Machine
RO
Machine that contains this Embedded MATLAB function.
Name
String
RW
Name of this Embedded MATLAB function (default = ''). Equivalent to typing a name for this Embedded MATLAB function into the label text field of the truth table box in the diagram editor. Label syntax is
return = Name (arguments).
Position
Rect
RW
Position and size of this Embedded MATLAB function in the Stateflow chart, given in the form of a 1-by-4 array (default is [0 0 90 60]) consisting of the following:
  • (x,y) coordinates for the box's left upper vertex relative to the upper left vertex of the Stateflow diagram editor workspace
  • Width and height of the box
Subviewer
Chart or State
RO
State or chart in which this Embedded MATLAB function can be graphically viewed.
Tag
Any Type
RW
Holds data of any type (default = []) for this Embedded MATLAB function.


Previous page  Truth Table Methods Embedded MATLAB Function Methods Next page

© 1994-2005 The MathWorks, Inc.