如何修改 MATLAB 启动时的工作路径?
111 views (last 30 days)
Show older comments
MathWorks Support Team
on 13 Dec 2019
Answered: MathWorks Support Team
on 13 Dec 2019
如何修改 MATLAB 启动时的工作路径?
Accepted Answer
MathWorks Support Team
on 14 Dec 2019
至少有以下三种方法:
1.MATLAB 主页->预设->常规,右侧可以设置启动时的工作路径。
2.建立 startup.m 文件,在文件中写入命令:
>> cd C:\matlab_startup
并将文件放到 MATLAB 的搜索路径(path)下,一般会选择
MATLAB安装路径\toolbox\local
3.这个方法仅对 Windows 操作系统,且通过双击快捷方式启动 MATLAB有效。右键快捷方式,选择属性,并在 Start in 中设置启动时的工作路径。
需要注意的是,上述三种方法互有冲突,因此仅建议通过一种方式进行设置。
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!