How to change the default path by using command?
6 ビュー (過去 30 日間)
古いコメントを表示
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~~~
0 件のコメント
採用された回答
その他の回答 (1 件)
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 件のコメント
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 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!