User`s guide

Initial Working Directory
2-13
Initial Working Directory
Set your MATLAB working directory outside the MATLAB root directory. The
default MATLAB root directory is
c:\matlabN, where N is the MATLAB version
number.
This section includes the following topics:
“Setting the Working Directory from the Desktop Icon” on page 2-13
“Setting the Working Directory from MATLAB” on page 2-13
Setting the Working Directory from the Desktop
Icon
Your initial working directory is specified in the shortcut file you use to start
MATLAB. To change this initial directory, use the following procedure:
1 Right-click the MATLAB desktop icon, or from the program menu,
right-click the MATLAB shortcut.
2 Click Properties. In the Start in text box, enter the directory path you want
MATLAB to use initially outside the MATLAB root directory.
3 Click OK, and then start MATLAB. To check your working directory, type
pwd or cd
Setting the Working Directory from MATLAB
Use the following procedure as an alternative, but temporary, procedure for
setting your MATLAB working directory:
1 In the MATLAB Command Window, type
cd c:\mwd
2 Check the current working directory, type
cd
MATLAB displays
ans = c:\mwd or c:\mwd