How to change default path on startup for Mac?
조회 수: 11 (최근 30일)
이전 댓글 표시
I have the newest version. I have played around with 'userpath' but no matter what I do, every time I open MATLAB it defaults to the old directory. How can I change this? Many thanks.
댓글 수: 0
답변 (3개)
Geoff Hayes
2014년 6월 17일
There is a startup.m file that you can update to change to another directory (I've done the same on my Mac) on start up. In the Command Window type
open startup.m
and the file will be opened in the editor (file located on my computer at /Applications/MATLAB_R2014a.app/toolbox/local). Just add a line similar to the following
cd /Users/geoff/Development/matlab
Save and restart MATLAB and see what happens.
댓글 수: 0
Bill Whiten
2014년 6월 18일
You could try: http://www.mathworks.com/matlabcentral/fileexchange/39425-restore-project-status-for-selected-project
Allows you to select folder on startup (and other times) also reopens files in editor and restores path.
댓글 수: 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!