MATLAB Answers

How can i avoid Matlab from creating new Matlab folders everytime i start it?

조회 수: 15(최근 30일)
michael
michael 4 Feb 2014
편집: michael 23 Feb 2014
Hi,
always when i'm starting matlab, it creates a new Matlab folder, with a slightly different name than before.
It starts with MATLAB-COMPUTERNAME1, the next time it sets up a folder with the name MATLAB-COMPUTERNAME2, and so on. This is very annoying, because when I press Ctrl+O, it doesn't open the functions I have previously created.
Thanks for your help in advance.

  댓글 수: 0

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

채택된 답변

michael
michael 23 Feb 2014
편집: michael 23 Feb 2014
BUMP
Edit: I'm sorry to only have found out now, but i can confirm now that the problen was indeed on the OneDrive side, and not on the side of Matlab. The problem was, that i also had a file which was called MATLAB in the same folder, and apparently OneDrive can't handle a file and a folder having the same name, which is why i had to change the name of the file. Now it works fine. :)

  댓글 수: 0

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

추가 답변(5개)

Thomas
Thomas 4 Feb 2014
편집: Thomas 4 Feb 2014
It might be defined so i the matlabrc.m file by the system administrator.
if you are the admin then you can change the settings as described here http://www.mathworks.com/help/matlab/matlab_env/startup-options.html#brlkmbe-1

  댓글 수: 0

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


michael
michael 4 Feb 2014
편집: michael 4 Feb 2014
I am the administrator, but unfortunately I can't find the matlabrc.m file. Where is it located and which line would I have to change in order to prevent matlab from creating new folders everytime I start it?
Maybe I have to precise, because it might help resolving the problem. I'm a student, and during the week i'm living in a different place than during some weekends. Therefore I've put my Documents folder of Windows into skydrive, so that all the documents are synchronized between my two PCs (for obvious reasons).
The problem exists on both PCs, but I can't imagine it has anything to do with Skydrive, because this problem is exclusive for the MATLAB folder and doesn't exist for any other folder in my Skydrive environment.

  댓글 수: 0

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


michael
michael 4 Feb 2014
편집: michael 4 Feb 2014
I have now found the matlabrc.m file, which is still in its default version (I haven't modified anything). I don't see any line that would modify the name of the default MATLAB folder.
Does anyone else have an idea what could be the problem?
Edit: The strange thing is, when I want to artificially create a MATLAB folder in my Documents folder, the message appears that this folder already exists, even though it doesn't (I've checked the hidden files. There's none ;) ).

  댓글 수: 2

Kelly Kearney
Kelly Kearney 4 Feb 2014
What about startup.m? (type which startup to see if one exists). Any modifications there?
michael
michael 4 Feb 2014
It shouldn't. I've set up both PCs this week and put a fresh copy of Matlab 2013b on them. ;)
(I've checked and none exists.)

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




Translated by