Change Directory (cd) Overload

版本 1.0 (1.8 KB) 作者: David Aronstein
Overloads 'cd' to allow changing to a directory specified by a file in your MATLAB path.
5.0 次下载
更新时间 2021/9/30

查看许可证

Overloads built-in MATLAB function 'cd', enabling changing the directory to one in the MATLAB path by using a filename in that directory. For example, if 'awesome.m' is somewhere in your MATLAB path, this function enables a command like cd('awesome')
MATLAB will give you warnings that this function has the same name as a MATLAB builtin. Use warning('off','MATLAB:dispatcher:nameConflict'); (like in startup.m) to turn off
It would be interesting to combine this function with the features in Brendan Hannigan's Cool CD: https://www.mathworks.com/matlabcentral/fileexchange/5959-cool-cd-change-directory

引用格式

David Aronstein (2024). Change Directory (cd) Overload (https://www.mathworks.com/matlabcentral/fileexchange/100059-change-directory-cd-overload), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2021a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签
致谢

参考作品: Cool CD (Change Directory)

Community Treasure Hunt

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

Start Hunting!

版本 已发布 发行说明
1.0