How can I restore files previously opened in Editor using MATLAB_Editor_State.xml?
21 次查看(过去 30 天)
显示 更早的评论
My Matlab 2012a crashed and the MATLABDesktop.xml.prev was cleared so I can't restore. I had a number of files opened in the Matlab Editor and would like to restore this. I see that there is a MATLAB_Editor_State.xml file available that contains all previously opened files. How can I easily restore this? Of course, I can write a script myself that loops through this list and open every single one of the file in the list but I was hoping there is a more simple way to do this. Can someone help?
0 个评论
回答(1 个)
Sudhanshu Bhatt
2015-10-26
编辑:Sudhanshu Bhatt
2015-10-26
Hello Jeffery,
I understand that you want to restore previously open files from the MALTAB_Editor_State.xml.
Unfortunately, as of now the only way to do this is to read the XML file and fetch the names of the files. You can do this by looping through the XML file as you have mentioned in the question description.
" xmlread" function in MATLAB can be used to read an XML file. More information on the "xmlread" function can be found in the documentation link below:
If MATLABDesktop.xml.prev still contains the previous editor state, then the below web page explains on how to restore the editor state:
If the files have been deleted, then the below web page from Microsoft could be helpful in recovering lost or deleted files:
Thanks
Sudhanshu Bhatt
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!