pushd

MATLAB version of pushd & popd, both available in UNIX/Linux and DOS. Adds some Matlab specific feat

您现在正在关注此提交

编者注: 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.

引用格式

Peter (PB) Bodin (2026). pushd (https://ww2.mathworks.cn/matlabcentral/fileexchange/8103-pushd), MATLAB Central File Exchange. 检索时间: .

致谢

参考作品: Quick Folder Navigation

类别

Help CenterMATLAB Answers 中查找有关 Search Path 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.3.0.0

Added some error trapping to adapt to new outputs of WHICH for built-in functions.