Prevent MATLAB from adding \Documents\MATLAB to the top of the search path
2 次查看(过去 30 天)
显示 更早的评论
I have my default current directory set to something other than the default "\Documents\MATLAB" by specifying the directory of my choice in the Windows shortcut used to load MATLAB - no problem. However, even though the directory is never used anymore, MATLAB insists on always adding "\Documents\MATLAB" to the top of the search path every time it starts. How to I prevent this? I'm using R2007b.
0 个评论
回答(1 个)
Andrew Newell
2012-1-11
Put
rmpath('\Documents\MATLAB')
in startup.m. You may need to use 'C:\Documents\MATLAB'; I don't have a Windows environment to test it on.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!