Skip to Main Content Skip to Search
Product Documentation

pasteTo - Paste objects in clipboard to specified container object

Syntax

clipboard.pasteTo(newContainer)

Description

The paste method pastes the contents of the Clipboard to the specified container object. The receiving container is specified through a single argument. Use of this method assumes that you placed objects in the Clipboard with the copy method.

Arguments

newContainer

The Stateflow object to receive a copy of the contents of the Clipboard object. If the objects in the Clipboard are all graphical (states, boxes, functions, notes, transitions, junctions), this object must be a chart or subchart.

Returns

None

Examples

See the section Copying Objects.

  


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