pushd
Anmerkung des Herausgebers: This file was selected as MATLAB Central Pick of the Week
PUSHD(directory/file-spec) stores the current working directory and changes current directory to the one specified in the string directory-spec. To get back to the stored directory call POPD, see help popd. PUSHD cal also be used to jump to a directory containing a specified file.
PUSHD stores the current directory. Go back to the pushed directory using POPD, see help popd.
PUSHD stores a stack of pushed directories. Calling POPD will pop you one step up the stack.
These two files, PUSHD and POPD are intended to mimic the functions with the same names in UNIX/Linux and DOS.
Zitieren als
Peter (PB) Bodin (2025). pushd (https://www.mathworks.com/matlabcentral/fileexchange/8103-pushd), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Tags
Quellenangaben
Inspiriert von: Quick Folder Navigation
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.3.0.0 | Added some error trapping to adapt to new outputs of WHICH for built-in functions. |