필터 지우기
필터 지우기

How to change the default path by using command?

조회 수: 10 (최근 30일)
tqy
tqy 2012년 8월 21일
Dear all,
I want change the default path to my project-document when MATLAB is starting, so that I need not to change it manually every time when I use the software.
Anyone know that how to do it? Can I finish it by the command?
Thanks a lot~~~

채택된 답변

Walter Roberson
Walter Roberson 2012년 8월 21일
Use pathtool() and ask it to save the path.

추가 답변 (1개)

Image Analyst
Image Analyst 2012년 8월 21일
You can edit your startup.m file and put a cd command in there to change the starting "Current folder" - that's what I do. I change it from time to time as I concentrate on different projects.
  댓글 수: 2
tqy
tqy 2012년 8월 21일
I'm sorry, but I can't find the startup.m?
do you mean pathdef.m?
Image Analyst
Image Analyst 2012년 8월 21일
No. Type startup into the help and see what it says. Basically, see what folder MATLAB puts you in when you first start it. Then create a file called startup.m in that folder, and then place your call to cd() in there.
cd('C:\wherever');

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by