Main Content

pwd

Identify current folder

Description

pwddisplays the MATLAB®current folder.

example

currentFolder= pwdreturns the path to the current folder.

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

collapse all

MATLAB current folder path, returned as a character vector.

See Also

|

Introduced before R2006a