pwd - Identify current folder - MATLAB (original) (raw)
Main Content
Syntax
Description
pwd
returns the MATLABĀ® current folder.
[currentFolder](#br6eedu-1-currentFolder) = pwd
returns the path to the current folder.
Examples
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.
Output Arguments
MATLAB current folder path, returned as a character vector.
Extended Capabilities
Usage notes and limitations:
- Dynamic memory allocation must be enabled for code generation.
Version History
Introduced before R2006a