Skip to Main Content Skip to Search
Product Documentation

Transferring Data Across Models

Copying Data Objects

When you copy a Stateflow chart from one Simulink model to another, all data objects in the chart hierarchy are copied except those that the Stateflow machine parents. However, you can use the Model Explorer to transfer individual data objects from machine to machine.

To copy a data object, follow these steps:

  1. In the Contents pane of the Model Explorer, right–click the data object you want to copy and select Copy from the context menu.

  2. In the Model Hierarchy pane, right-click the destination Stateflow machine and select Paste from the context menu.

Moving Data Objects

To move a data object, click the object in the Contents pane of the Model Explorer and drag it to the destination Stateflow machine in the Model Hierarchy pane.

  


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