2009年1月8日星期四

如何更改MATLAB的默认启动路径

启动matlab时,它会根据默认路径列表
自动在“我的文档”[win]下生成MATLAB空文件夹;
set path对此无能为力,因为每次启动都会生成一次。

以下是两则技巧:
1、将启动路径改为你喜欢的?
答:在快捷方式右键属性里,把你喜欢的路径添加到【起始位置】框。
1).Right-click the MATLAB shortcut icon and select Properties from the context menu. The Properties dialog box for matlab.exe opens to the Shortcut page.
2).Enter the new startup directory in the Start in field and click OK.

2、彻底去除MATLAB空文件夹?
答:修改【matlab\toolbox\local\pathdef.m】的最后一行,
也就是在【p = [userpath,p];】前加【%】号解释掉这行。

没有评论: