pushd, popd, and dirs

版本 1.0.0.0 (1.9 KB) 作者: Doug
Shortcuts for moving among directories, like Unix pushd, popd, and dirs commands.
240.0 次下载
更新时间 2012/1/11

查看许可证

Ever find yourself using Matlab and wishing you could quickly get back to the directory you were just in? Or the one before that? Ever wish the Unix commands pushd, popd, and dirs were implemented in Matlab? Here they are.

Use pushd like cd. The only difference: every time you use pushd, the directory you leave behind is saved on a stack. To go back, just type popd, and it takes you to the directory on top of the stack. To see what's on the stack, use dirs. Stack size is not limited.

Type "help pushd", "help popd", or "help dirs" at the Matlab command line for more information.

引用格式

Doug (2024). pushd, popd, and dirs (https://www.mathworks.com/matlabcentral/fileexchange/34535-pushd-popd-and-dirs), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Search Path 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0