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.

example

Examples

collapse all

Change the current folder to a local folder and store the path.

cd c:\myMATLABFiles currentFolder = pwd

currentFolder =

'c:\myMATLABFiles'

Output Arguments

collapse all

MATLAB current folder path, returned as a character vector.

Extended Capabilities

expand all

Usage notes and limitations:

Version History

Introduced before R2006a