Matlab ignores the initial working folder setting
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Maurice Volaski
el 2 de Jun. de 2023
Editada: Image Analyst
el 3 de Jun. de 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 comentario
Respuesta aceptada
Image Analyst
el 2 de Jun. de 2023
Editada: Image Analyst
el 3 de Jun. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!