set current folder in matlab

To set the current folder in matlab, use the "cd" command followed by the path to the desired folder. For example, to set the current folder to "C:\myfolder", use the following command:

main.m
cd('C:\myfolder')
18 chars
2 lines

You can also navigate to the desired folder using the "Current Folder" browser in the Matlab desktop. This can be opened by clicking on the "Current Folder" tab in the Matlab desktop or by typing "currentFolder" in the command window. Once the browser is open, simply click on the desired folder to make it the current folder.

gistlibby LogSnag