MATLAB Function Reference
  Go to function:
    Search    Help Desk 
cd    Examples   See Also

Change working directory

Syntax

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



[ Previous | Help Desk | Next ]