At every startup MATLAB creates a folder in users/"user"/Documents. How do I stop this? This isn't my working folder.
Show older comments
MATLAB R2017B on iMac. All software current. Each time I open MATLAB is creates an empty folder called MATLAB in my Documents folder. Nothing goes in here. I use a different folder for my M files and workspace etc. I can't find any preference or startup setting to stop this happening. I know it's harmless but it's a nuisance. How do I prevent this folder from being created?
Answers (3)
Image Analyst
on 16 Feb 2018
In your startup.m file delete that folder and cd to the folder you want.
> edit startup.m
then:
delete('c:\users\documents\MATLAB'); % Or wherever.
cd('c:/blah/foobar/snafu'); % Wherever you want.
Make sure the folder where startup.m is is on the search path.
Bernard Abramson
on 16 Feb 2018
0 votes
1 Comment
Image Analyst
on 16 Feb 2018
Use setpath on the Home tab of the tool ribbon. It already should be on the path though if you're just using the default, though if you want the startup.m file to live in a folder with all of your other custom code, then put it there but add it to the path. This is what I do. I have a folder d:\MATLAB (secondary internal SS drive) and have it there. Then I have subfolders in there for all of the hundreds of different individual/separate projects that I work on.
John Newton
on 16 Feb 2018
0 votes
Thanks for trying but none of that worked. Editing or moving startup.m causes Matlab to think that the app is not installed in an administrator user (which it is). This is more serious than the problem I'm trying to solve.
I'll live with it.
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!