Skip to Main Content Skip to Search
Product Documentation

setOutputDir - Class: cgv.CGV
Package: cgv

Specify folder

Syntax

cgvObj.setOutputDir('path')
cgvObj.setOutputDir('path', 'overwrite', 'on')

Description

cgvObj.setOutputDir('path') is an optional method that specifies a location where the object writes all output and metadata files for execution. cgvObj is a handle to a cgv.CGV object. path is the absolute or relative path to the folder. If the path does not exist, the object attempts to create the folder. If you do not call setOutputDir, the object uses the current working folder.

cgvObj.setOutputDir('path', 'overwrite', 'on') includes the property and value pair to allow read-only files in the working directory to be overwritten. The default value for 'overwrite' is 'off'.

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