Hi I'm beginner in MATLAB. I need to import tsv files that are named as follows:
2004.01.01.0000.tsv2004.01.01.0300.tsv2004.01.01.0600.tsv2004.01.01.0900.tsv2004.07.01.1200.tsv2004.01.01.1500.tsv2004.01.01.1800.tsv2004.01.01.2100.tsv2004.01.02.0000.tsv2004.01.02.0300.tsv2004.01.02.0600.tsv2004.01.02.0900.tsv2004.01.02.1200.tsv2004.01.02.1500.tsv2004.01.02.1800.tsv2004.01.02.2100.tsv......2005.12.31.2100.tsv
so each day has 8 files associated with it.
I need to import them as a 3 dimensional matrix using for loops.
I have the idea that my code should look something like this but it is not easy as I think
for yy=2004:2005y= int2str(yy); for mm=1:12m= int2str(mm); for dd=1:31d= int2str(dd); for ii=0000:0300:2100i=int2str(ii);z(:,:,)=importdata(y.m.d.i);end end end end
Thank you.
Best Answer