I have a problem with selecting the default folder that MATLAB displays on the left when I open it. I would like to change it for another of my choice but every time I run the program it always shows the same one. It's quite annoying because I open MATLAB quite often and I don't want to be looking for the same folder on and on and on forever. I've tried with "set path" but it doesn't work. I have to many folders on "my path" by default and if I want to delete them I have to do it one by one.
Is there a way to solve this?

 채택된 답변

James Tursa
James Tursa 2015년 3월 6일

0 개 추천

Create a file called startup.m in the folder that MATLAB starts in and add anything you want in it for startup commands. E.g., add a cd('your desired starting folder') line.

추가 답변 (1개)

Adam
Adam 2015년 3월 6일

0 개 추천

I just change the 'Start in' directory in the properties for Matlab for the shortcut I use to open it.

댓글 수: 1

Ricardo Boza Villar
Ricardo Boza Villar 2015년 3월 7일
I found your answer easier and I was going to accept both of them, but it seems you can only accept one... Anyway, thanks very much to both of you.

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

카테고리

도움말 센터 및 File 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