フィルターのクリア

How to make MATLAB always start with the previous directory when using the menu?

16 ビュー (過去 30 日間)
Hey
Is there a way to make MATLAB always open the last used directory?
For instance, when saving a figure, importing data through the menu, etc. etc. it always revert back to some default folder (for instance, "This PC --> Documents --> MATLAB"
How can I make MATLAB always open the last folder I navigated to? I've looked through the preferences tab, but cannot find any settings that seem to do this.
I'm not interested to make this happen in any scripts etc. to be clear, just when using the menues in the graphical interface of MATLAB.
Kind regards,
Carl

採用された回答

Bora Eryilmaz
Bora Eryilmaz 2023 年 5 月 2 日
編集済み: Bora Eryilmaz 2023 年 5 月 2 日
Yes, as long as you start MATLAB from a shortcut icon on your desktop, you can set the "Initial Working Folder" setting in the Preferences dialog to make MATLAB remember its last folder. See here for more details on setting this up: https://www.mathworks.com/help/matlab/matlab_env/start-matlab-on-windows-platforms.html
  3 件のコメント
Bora Eryilmaz
Bora Eryilmaz 2023 年 5 月 5 日
I don't think this is possible as a preference or something similarly simple in MATLAB.
Dialogs like Save As or File Open will always open at your current directory. Which directory you used previously to open or save files won't be remembered.
Carl Flygare
Carl Flygare 2023 年 5 月 9 日
Ok, thanks for giving me an answer :)
I'll make this as a wish for the future!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by