Change current folder
cd
displays the current folder.
cd
changes the current folder to
newFolder
newFolder
. Folder changes are global. Therefore, if you use
cd
within a function, the folder change persists after
MATLAB® finishes executing the function.