Save Open State in Editor???
20 views (last 30 days)
Show older comments
Is there no preferences option to have editor reload previous state w/o having to open each and every file again? Very rude behavior...
0 Comments
Answers (1)
Steven Lord
on 17 Jan 2020
In the Preferences for MATLAB, there's a section titled Editor/Debugger. One of the options that you can select (and I believe is selected by default) is "On restart reopen files from previous MATLAB session". However I believe under certain circumstances (like if MATLAB crashes) that may not always work.
Or do you mean you accidentally or intentionally closed a file (or all the files) and want to undo that action? I don't believe there is a way to undo that, but it seems like a reasonable enhancement request.
As a third option, if you want to be able to "remember" what files are opened, close some and/or open others, then restore the "remembered" set of files I think the projects functionality in MATLAB may be of interest to you. That functionality was introduced in release R2019a.
8 Comments
Mac
on 9 Oct 2025
Would it also be possible to use the automatically saved list of open matlab files (for instance in Matlab2020a) to make a newer matlab version (for instance Matlab2024b) installed on a different computer (with the same file structure) open the same files?
(Or is there some other way to open a long-ish list of files (same file structure on computer) on another computer)
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!