Matlab ignores the initial working folder setting
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Maurice Volaski
le 2 Juin 2023
Modifié(e) : Image Analyst
le 3 Juin 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 commentaire
Réponse acceptée
Image Analyst
le 2 Juin 2023
Modifié(e) : Image Analyst
le 3 Juin 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!