How do I set the default/initial working folder for MATLAB?
조회 수: 295 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2012년 10월 11일
편집: MathWorks Support Team
2021년 2월 2일
How do I set the default/initial working folder for MATLAB?
채택된 답변
MathWorks Support Team
2020년 11월 18일
편집: MathWorks Support Team
2020년 12월 1일
You can set the initial working folder in MATLAB through the following Preference settings:
1. Open the Preferences window
2. Navigate to the General options
3. Select the option to specify a path to a folder under the Initial working folder options, and enter the desired directory
4. Press Apply and/or OK to save your changes
5. Restart MATLAB to verify the new location is set as expected.
Additional information can be found in the MATLAB documentation:
MATLAB Startup Folder
댓글 수: 2
Sandip Kumar
2014년 8월 27일
편집: MathWorks Support Team
2021년 2월 2일
Hi Ben,
The startup file should be kept at a writable location and not inside the installation directory. There are many directories in the path of MATLAB. One such folder is <user directory>\Documents\MATLAB
Have the startup file in that location, and then inside the startup.m, you can force MATLAB to start in a desired directory as the article above says.
If you continue seeing the issue, I would recommend contacting Technical support using one of the methods mentioned here: https://www.mathworks.com/support/contact_us.html
Thanks Sandip
추가 답변 (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!