MATLAB default startup folder - how to 'disable' it?

My MATLAB (R2011a) on Windows always creates a 'MATLAB' folder in my user directory ( C:/Documents and Settings/<username>/My Documents/MATLAB ) whenever MATLAB starts. Delete it, and the next time MATLAB starts it is created again.
I use a different folder for my MATLAB work, and I do not require this folder, I find it's presence annoying.
I have found a clumsy workaround by including the line
rmdir('C:/Documents and Settings/<username>/My Documents/MATLAB')
in my personal startup.m file.
Does anyone know of a nicer solution? I've spent some time searching the MATLAB help and the internet but haven't found a better solution myself.
Any help gratefully received.

답변 (1개)

Jan
Jan 2011년 9월 22일
편집: John Kelly 2015년 2월 27일

0 개 추천

You can use userpath to define the startup folder.

댓글 수: 1

Fred
Fred 2011년 9월 22일
Thanks very much Jan. I had read the documentation on userpath in the help, and try that route at first. But it didn't seem to work properly when I tried to implement it, which is why I posted my question.
However I tried again after I saw your answer, and lo and behold the method does now work, so I guess I made some mistake earlier. The unwanted default folder is no longer created at start-up. Thanks for your reply.

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

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

2011년 9월 22일

편집:

2015년 2월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by