Im trying to import a series of files and pair them with some other data that i've got.
The problem is that the order in which the data is being imported is incorrect.
i use the code:
filePattern2 = fullfile(myFolder, 'run_*.hdf5');
theFiles2 = dir(filePattern2);
which makes this order:
i would like the numbers to to be in order so:
Any simpel way to make this happen?
Thanks in advance!