Main Content

classhandle

Provide class handle for object

Syntax

handle = classhandle(thisObject)

Description

The classhandle function returns a read-only class handle for a Stateflow® API object. You can use the classhandle function to retrieve information about the structure of each object type.

Arguments

thisObject

The object for which to return a class handle. Can be any Stateflow object.

Returns

handle

Class handle for this object.

Examples

If j is a Stateflow.Junction object, classhandle(j) returns the class handle of a Stateflow.Junction object. To display the structure for this class handle, enter:

get(classhandle(j))

The structure for this class handle includes the fields Names and Properties. To display the Properties substructure, enter:

get(classhandle(j).Properties)

The Properties substructure includes the fields Name and DataType. You can display a list of property names and data types of a Stateflow.Junction object with the following command:

get(classhandle(j).Properties,{'Name','DataType'})
Introduced before R2006a