Identify current folder
currentFolder = pwd
Change the current folder to a local folder and store the path.
cd c:\myMATLABFiles currentFolder = pwd
currentFolder = 1×16 char array c:\myMATLABFiles
View the current folder in the Current Folder toolbar.
currentFolder— Path to the MATLAB current folder
Path to the MATLAB current folder, specified as a character vector.