Hi all, I was working in many m.files (about 20) and without attention I closed the editor Is there any way to re-open these files. I have Matlab R2012b. thank you in advance.

1 件のコメント

Venkatesh Huilgol
Venkatesh Huilgol 2021 年 4 月 28 日
sir/madam
sub: not rescived emaii marwork account how reset my passworad matwork sir

サインインしてコメントする。

 採用された回答

Wayne King
Wayne King 2014 年 1 月 31 日

3 投票

You can read Yair Altman's post on this

1 件のコメント

Sehairi K.
Sehairi K. 2014 年 1 月 31 日
Thank you very much

サインインしてコメントする。

その他の回答 (3 件)

Souarv De
Souarv De 2023 年 10 月 12 日

3 投票

%parse XML file
xmlFiles = xmlread([prefdir filesep 'MATLAB_Editor_State.xml']);
%Retrieve the "clients"
FileNodes = xmlFiles.getElementsByTagName('File');
%get the length of the FileNodes
nrFiles = FileNodes.getLength;
%initialize Files
Files = cell(nrFiles,1);
%initialize isFile
isFile = zeros(nrFiles,1);
%Iterate over all Elements and check if it is a file.
for iNode = 0:nrFiles-1 % Java indexing.
%Files
Files{iNode+1} = [char(FileNodes.item(iNode).getAttribute('absPath')),...
filesep,char(FileNodes.item(iNode).getAttribute('name'))];
%check if the "client" is a file:
isFile(iNode+1) = exist(Files{iNode+1},'file') == 2 && ~(strcmp(Files{iNode+1},'Workspace'));
end
%remove the other files:
MyFiles = Files(find(isFile));
%open the files in the editor:
edit(MyFiles{:});

1 件のコメント

asmaa
asmaa 2023 年 10 月 15 日
it is perfect thank you

サインインしてコメントする。

JAY R
JAY R 2014 年 11 月 27 日
編集済み: JAY R 2014 年 11 月 27 日

2 投票

I got the same problem and I got recovered my docked files from the editor.
I have tried Yair Altman's post but not understood. Thats why I have committed to answer the question.
The steps are so simple and easy.
1] go to command prompt
>> winopen(prefdir) % this will open the folder
2] in the folder open MATLAB_Editor_State.xml file in wordpad or XML editor.
If you are unknown to XML editor then go to google and search for online XML editor.
3] Copy and paste XML Data from Wordpad to the online editor and press submit.
4] you will get all the path for each file including the filename.
-------------------------------------------------------------------------------------
There is always a way - if you're committed ~ Tony Robbins
--------------------------------------------------------------------------------------

1 件のコメント

RUSTU MURAT DEMIRER
RUSTU MURAT DEMIRER 2020 年 8 月 16 日
編集済み: Walter Roberson 2022 年 7 月 31 日
I could not understand anything what you say. Darn this company soıftware designers. Darn this company million times. One misleading button at the right place, I lost all state keeping my opened files. Darn.
What ıs that what is the thrd step darn
in the folder open MATLAB_Editor_State.xml file in wordpad or XML editor.
If you are unknown to XML editor then go to google and search for online XML editor.
3] Copy and paste XML Data from Wordpad to the online editor and press submit.
4] you will get all the path for each file including the filename.
-------------------------------------------------------------------------------------

サインインしてコメントする。

per isakson
per isakson 2014 年 1 月 31 日
編集済み: per isakson 2014 年 1 月 31 日

0 投票

Unfortunately, there is not.
However, in the File Exchange there are at least a couple of contributions, which try to help:

カテゴリ

ヘルプ センター および File Exchange で File Operations についてさらに検索

タグ

質問済み:

2014 年 1 月 31 日

コメント済み:

2023 年 10 月 15 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by