I am given a large group of data that involves months and years and was looking for a quick way to process this. It is easiest to do this using two for loops but I need to retain that information. I have tried using {} but that will only let me use one of the loops. So far, my code is:
for mo=1:12 for year=2005:2015 [dttm,timemin,wnddatenum,wndspeed,wnddir,pres,temp]= ... RdNCDCData(filename,mo,yr,iminsamp); end end
How would I be able to get an array giving the month and year as something like [1,2005] for the variable?
Best Answer