Is it possible to undo close tab in Matlab's editor? -
many web browsers allow undo close tab:

is possible undo close tab in matlab's editor?
i use r2014a on windows 7.
it isn't officially supported in matlab, reference undocumented matlab, there workaround.
matlab stores desktop windows state in file called matlabdesktop.xml located in user’s prefdir (preference directory) folder. can echo in matlab typing in prefdir in command prompt , pushing enter or return. using windows, can open folder within matlab:
winopen(prefdir); this should open new windows explorer window directly bring prefdir folder.
this file includes information position , state of every desktop window. since editor files considered desktop documents, included in file. such, when close editor, these documents removed matlabdesktop.xml file.
it turns out matlab automatically stores backup version of file in file called matlabdesktop.xml.prev, in same prefdir folder. i'm using matlab r2014a in windows 7 , have double-checked see if these files on system , are!
so before doing else, close matlab, delete latest matlabdesktop.xml file, replace copy of matlabdesktop.xml.prev file, renaming matlabdesktop.xml. after, restart matlab , editor should reopen previous tabs.
Comments
Post a Comment