Skip to Main Content Skip to Search
Product Documentation

copySetup - Class: cgv.CGV
Package: cgv

Create copy of cgv.CGV object

Syntax

cgvObj2 = cgvObj1.copySetup()

Description

cgvObj2 = cgvObj1.copySetup() creates a copy of a cgv.CGV object, cgvObj1. The copied object, cgvObj2, has the same configuration as cgvObj1, but does not copy any results of the execution.

Tips

Examples

Make a copy of a cgv.CGV object, set it to run in a different mode, then run and compare the objects in a cgv.Batch object.

cgvModel = 'rtwdemo_cgv';
cgvObj1 = cgv.CGV(cgvModel, 'connectivity', 'sim');
cgvObj1.run();
cgvObj2 = cgvObj1.copySetup()
cgvObj2.setMode('sil');
cgvObj2.run();

See Also

cgv.CGV.run

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS