Skip to Main Content Skip to Search
Product Documentation

Stateflow.Target - Constructor for creating custom target

Syntax

target_new = Stateflow.Target(parent_m)

Description

The Stateflow.Target method is a constructor method for creating a custom target for a parent machine, that returns a handle to the Target object for the new target.

Arguments

parent_m

Handle to object for the parent machine of the new custom target

Returns

target_new

Handle to the Target object for the newly created custom target

Examples

The following command creates a new custom target for the machine with the Machine object whose handle is pm:

target_new = Stateflow.Target(pm)

The preceding command creates a custom target with the name untitled. target_new is a handle to the Target object, which you can use to rename and set properties for the custom target. This command renames the new target to ctarg:

target_new.Name = 'ctarg'
  


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