Restore open files in Editor from previous sessions
33 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2017 年 6 月 9 日
回答済み: Steven Lord
2019 年 7 月 8 日
I often use multiple MATLAB sessions simultaneously to work on different aspects of my project. Each instance has a unique set of files that I use together and work on together. Typically when I close a session and then re-open MATLAB, the same files will be open in the Editor.
However, when I close all 3 sessions and then open up 3 new sessions, they all contain the files from my last-closed session. Is there any way to workaround this? Is there any way to choose which files to restore?
採用された回答
MathWorks Support Team
2020 年 1 月 9 日
There is no functionality within MATLAB to get the above behavior at this time. However, there is a submission on the File Exchange which customers have used in the past to attain this functionality:
In particular, you can save an open session (Open files in the Editor & Current Folder) with the following syntax:
>> editorLayout.SessionEditor.saveSession( 'NameOfNewSession' );
Then you can switch to a different, previously saved session using the command:
>> editorLayout.SessionEditor.openSession();
Note that MathWorks did not author these documents and any questions regarding the contents or functionality should be directed towards the author of the files.
0 件のコメント
その他の回答 (1 件)
Steven Lord
2019 年 7 月 8 日
If you're using release R2019a or later, consider using the Projects functionality introduced in MATLAB in that release to organize your files.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!