Skip to Main Content Skip to Search
Product Documentation

copy - Copy specified array of objects to clipboard

Syntax

cbObj.copy(objArray)

Description

The copy method copies the specified objects to the clipboard. Objects to copy are specified through a single argument array of objects.

Later, complete the copy operation by invoking the pasteTo method.

Arguments

cbObj

The Clipboard object to copy to.

objArray

Array of Stateflow objects to copy. These objects must conform to the following:

  • The objects copied must be all graphical (states, boxes, functions, transitions, junctions) or all nongraphical (data, events, targets).

  • If all objects are graphical, they must all be seen in the same subviewer.

Returns

None

Examples

See 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