read files in yyyymmddhhmm format
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
wave_buoys
am 23 Aug. 2017
Bearbeitet: Stephen23
am 23 Aug. 2017
Hi,
I have a bunch of files named in yyyymmddhhmm format. For example: 201111010000.txt 201111010300.txt 201111011000.txt 201111011300.txt ... and so on. I want to loop through each file to get the data. Could someone help?
Thanks
1 Kommentar
Akzeptierte Antwort
KSSV
am 23 Aug. 2017
files = dir('*.txt') ; % you are in the folder of text files
N = length(files) ; % total number of files
for i = 1:N % loop for each file
thisfile = files(i).name ;
%%load the data
% Store if you want or calculate
end
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!