About Adding Lines to Your startup.m file
조회 수: 2 (최근 30일)
이전 댓글 표시
답변 (2개)
Matt J
2022년 1월 22일
편집: Matt J
2022년 1월 22일
The startup.m file is not a file that ships with Matlab. It needs to be created by you. You can put it anywhere in your permanent Matlab path. By permanent, I mean folders that are automatically in your path when Matlab is launched. You can use savepath() or pathtool() to make a particular folder permanent.
댓글 수: 0
Star Strider
2022년 1월 22일
I believe that it now has to be in (Windows machines):
C:\Users\<UserNAme>\Documents\MATLAB\startup.m
It cannot be in any of the subfolders, at least in my experience. Probably something similar in Mac.
At one time, it was necessary to add all the user-created subdirectories to the MATLAB path, so my startup.m file (that I created originally about 20 years ago and have modified a few times since) does that as well.
댓글 수: 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!