pwd
Identify current folder
Syntax
Description
pwd
displays the MATLAB® current folder.
returns
the path to the current folder.currentFolder
= pwd
Examples
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'
Alternative Functionality
View the current folder in the Current Folder toolbar.