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
Best Answer