load .mat files in order
古いコメントを表示
I have a set of output files in structure format saved as .mat (output1,output2,output3,..outputn) I am using this code to load it into my workspace.
for fileNr =1:Nrof files
outputFileName = outputFileNames(fileNr);
outputFileName = outputFileName{1};
outputFileName = strcat(outputFolder, filesep, outputFileName);
FileName=(outputFileName);
data1=load(FileName);
end
But matlab loads files. I want it to be in order. what can be done to achieve this.Thanks
1 件のコメント
Roger Wohlwend
2014 年 6 月 13 日
I don't understand. What does Matlab do now? And what do you want Matlab to do?
採用された回答
その他の回答 (1 件)
Adedeji
2014 年 6 月 13 日
0 投票
In the help documentation there are several synthax for loading a file, you can load by calling the filename and then string in order the file orders you want to load. i.e. load(filename,'file1','file2'...)
カテゴリ
ヘルプ センター および File Exchange で Workspace Variables and MAT Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!