Length of variable is much shorter during a loop?
1 view (last 30 days)
I have a variable 'DOYfilt' that has a sizw 1408x1 double. It contains datenums so I have a for loop to convert it to datestrings. When I enter the loop, the length of DOYfilt is only 7. What do I do so that it can go through the entire length of the variable?
date=datestr(DOYfilt(i) + datenum('2012/01/01'),'mm/dd/yyyy HH:MM');