Contents Previous Next Subchapters

Getting And Setting The Current Working Directory (Mlmode)
Syntax cd
cd(directory)
O-Matrix Mode cwd

Description
Returns the current working directory as a character row vector. In addition, if directory is present, changes the current working directory to the one specified, where directory is a character row vector. In this case, the return value of cd corresponds to before the change of directories.

Example
If your in Mlmode , the current working directory is C:\OMWIN, and you enter
     cd
O-Matrix will respond
     C:\omwin
If you then enter
     cd('programs')
O-Matrix will respond
     C:\omwin
and will set your current working directory to C:\OMWIN\PROGRAMS. If you then enter
     cd
O-Matrix will respond
     C:\omwin\programs