Pushd, Popd, dirs
Version 1.0.0.0 (1.81 KB) by
Dennis Jackson
MATLAB implementation of unix-style pushd, popd, and dirs.
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
myDir
anotherDir> popd
myDir> % back to where you started
Cite As
Dennis Jackson (2024). Pushd, Popd, dirs (https://www.mathworks.com/matlabcentral/fileexchange/4707-pushd-popd-dirs), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R13
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on File Operations in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |