Hi,
I have multiple .csv files in the following format from:
TRMM_1998_01_newntcl.csvTRMM_1998_02_newntcl.csv...TRMM_1998_12_newntcl.csvTRMM_1999_01_newntcl.csv...TRMM_1999_12_newntcl.csv
I have the following code and I need to modify to read by month (1-12). I appreciate if someone can help me to figure this out and modify the following code.
Thanks in advance.
sad = dir('TRMM_*_newntcl.csv'); cac = regexp( {sad.name}, '1998_[01]\d_[0-3]\_' ); ism = not( cellfun( @isempty, cac ) ); d = sad(ism); ymdh=cell2mat(textscan([d.name], ... 'TRMM_%4d_%2d_%2d%2d_newntcl.csv', ... 'collectoutput',true));
Best Answer