Matlab ignores the initial working folder setting
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Maurice Volaski
am 2 Jun. 2023
Bearbeitet: Image Analyst
am 3 Jun. 2023
New installation of MatLab 2023a on a Windows 10 computer with a previous release installed. It opens to the initial working folder of the binary location of MatLab. We changed it to a Matlab folder inside Documents. The General Preferences remembers this choice and even changes it initially, but restart Matlab and it's back to the binary locaion of Matlab, but the General Preferences setting is correct, what we set it to.
1 Kommentar
Akzeptierte Antwort
Image Analyst
am 2 Jun. 2023
Bearbeitet: Image Analyst
am 3 Jun. 2023
Create a startup.m file and put it in a folder that is at the top of your path. You can then have it cd to whatever folder location you want upon startup. Like
In startup.m
cd('c:\Users\Maurice\Document\MATLAB\my projects')
Also check out userpath
help userpath
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!