File Exchange

image thumbnail

Pushd, Popd, dirs

version (1.81 KB) by Dennis Jackson
MATLAB implementation of unix-style pushd, popd, and dirs.

1 Download

Updated 05 Apr 2004

View License

pushd, popd, and dirs implement a unix-style directory stack. It uses a global variable to hold the stack.

Example usage:
> cd myDir
myDir> pushd( 'anotherDir' )
anotherDir> %excute commands here
anotherDir> dirs
anotherDir> popd
myDir> % back to where you started

Cite As

Dennis Jackson (2021). Pushd, Popd, dirs (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!