| Contents | Index |
target_new = Stateflow.Target(parent_m)
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.
Handle to object for the parent machine of the new custom target |
target_new | Handle to the Target object for the newly created custom target |
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'

Learn how engineers use Stateflow to model state machines in their Simulink models.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |