Change Directory to Current File in Editor

版本 1.0.0.0 (813 字节) 作者: Hiran
Changes the directory to the path of the current file in editor.
198.0 次下载
更新时间 2016/4/23

查看许可证

When you are working on a .m file which you do not necessarily like to have added to your MatLab's path, it is a nuisance to have to browse to the current directory every time you re-open MatLab. Granted you can easily do this by just running the m file, but sometimes you just want to browse to the directory, not to run the script. Well, scl can do this for you. Just setup scl once (as described in the comment inside), and run the command 'scl' in your command line while a desired script is open and active in editor already.

引用格式

Hiran (2024). Change Directory to Current File in Editor (https://www.mathworks.com/matlabcentral/fileexchange/56624-change-directory-to-current-file-in-editor), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2016a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Environment and Settings 的更多信息
致谢

启发作品: MCD - My change directory

Community Treasure Hunt

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

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

Minor changes to description to make it clearer.