MATLAB Link for Code Composer Studio Development Tools    
cd

Change the CCS IDE working directory

Syntax

Description

cd(cc,'directory') changes the CCS IDE working directory to the directory identified by the string dir. dir must refer to an existing directory for the change to take affect. You can give the directory string either as a relative pathname or an absolute pathname including the drive letter. CCS IDE applies relative pathnames from the current working directory.

wd = cd(cc) returns the current CCS IDE working directory in wd.

Using cc to change the CCS IDE working directory does not affect your MATLAB working directory or any MATLAB paths. Use the following function syntax to set your CCS IDE working directory to match your MATLAB working directory.

cd(cc,pwd) where pwd calls the MATLAB function pwd that shows your present MATLAB working directory, changes your current CCS IDE working directory to match the pathname returned by pwd.

Examples

When you open a project in CCS IDE, the folder containing the project becomes the current working folder in CCS IDE. Try opening the tutorial project volume.mak in CCS IDE. volume.mak is in the tutorial files from CCS IDE. When you check the working directory for CCS IDE in MATLAB, you see something like the following result

where the drive letter D may be different based on where you installed CCS IDE.

Now check your MATLAB working directory:

Your CCS IDE and MATLAB working directories are not the same. To make the directories the same, use the cd(cc,pwd) syntax

You have set CCS IDE and MATLAB to use the same working directory.

See Also
dir, load, open


  ccsdsp cexpr