Identify current folder
Store Path to MATLAB® Current Folder
Change the current folder to a local folder and store the path.
cd c:\myMATLABFiles currentFolder = pwd
currentFolder = 'c:\myMATLABFiles'
View the current folder in the Current Folder toolbar.
currentFolder — MATLAB current folder path
MATLAB current folder path, returned as a character vector.
Introduced before R2006a