pwd
Identify current folder
Syntax
Description
pwd
displays the MATLAB®current folder.
returns the path to the current folder.currentFolder
= pwd
Examples
MATLAB®当前存储路径Folder
Change the current folder to a local folder and store the path.
cdc:\myMATLABFilescurrentFolder = pwd
currentFolder = 'c:\myMATLABFiles'
Alternative Functionality
View the current folder in the Current Folder toolbar.
Output Arguments
Introduced before R2006a