| MATLAB Function Reference | Search  Help Desk |
| cd | Examples See Also |
Syntax
cd cd directory cd ..
Description
cd
prints out the current directory.
cd directory
sets the current directory to directory. On UNIX platforms, the character ~ is interpreted as the user's root directory.
cd ..
changes to the directory above the current one.
Examples
UNIX:cd /usr/local/matlab/toolbox/demos
DOS: cd C:MATLAB\DEMOS
VMS: cd DISK1:[MATLAB.DEMOS]
See Also
dir, path, what