We extracted data using LabVIEW and got these kind of files:
For this measurement we have 151 files. But when I try to read them using this code:
%% declare folder containing the files
d = uigetdir(pwd, 'Select a folder');csvFiles = dir(fullfile(d, '*.csv')); % get all csv files
% csvFilesOrdered = natsortfiles({csvFiles.name});
I tried ordering it through natsortfiles function but this does not work. What we get is:
Is there an easy way to solve this so it reads the files in the correct order? There should be a way to easily extract this but I cannot find it.
Thanks in advance!
Best Answer