It would be good to save open files, as well as path/workspace/workdir state. Approach would be: - Save with `docs = matlab.desktop.editor.getAll; docs.Filename` - Load with `edit('file.m')`