• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

快速修改Matlab默认启动路径(Windows/Mac)

原作者: [db:作者] 来自: [db:来源] 收藏 邀请
如何修改Matlab启动路径/Windows or Mac
控制台内输入一下两行命令,之后重启MATLAB即可
 
newpath = \'你所要设定的路径\';
userpath(newpath)
 
或者使用一下三种方法之一,windows平台下,方法二最为简单:
 
Changing the Startup Folder Via the userpath Function
Use the userpath function to change the startup folder as well as to add the startup folder to the search path upon startup. For more information, see the userpath reference page and MATLAB Startup Folder.
 
Changing the Startup Folder Using the Shortcut — Windows Platforms Only
To change the startup folder on Windows® platforms using the shortcut,
Right-click the shortcut icon for MATLAB and select Properties from the context menu.
The Properties dialog box for MATLAB opens to the Shortcut pane.
The Target field contains the full path to start MATLAB.
By default, the startup folder is Documents\MATLAB; for more information, see Startup Folder on Windows Platforms.
In the Start in field, specify the full path to the folder in which you want MATLAB to start, and click OK.


The next time you start MATLAB using that shortcut icon, the current folder will be the one you specified in step 2.
You can make multiple shortcuts to start MATLAB, each with its own startup folder, and with each startup folder having different startup options.
 
Changing the Startup Folder Using the startup.m File
Use the startup.m file to specify the startup folder as well as other startup options—for details, see Specifying Startup Options in the MATLAB Startup File.
 
Reference:
http://www.mathworks.nl/help/matlab/matlab_env/changing-the-startup-folder.html
http://www.mathworks.nl/help/matlab/ref/userpath.html#btn2ix7-2

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
matlab中hold指令、figure指令及subplot指令的使用发布时间:2022-07-18
下一篇:
matlab怎么设置默认路径 - Aaron12发布时间:2022-07-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap