Matlab ignores the initial working folder setting
10 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Image Analyst
2023 年 6 月 2 日
編集済み: Image Analyst
2023 年 6 月 3 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!