Hello, My seasons are defined as Dec-Feb, March-May, June-August, and Sep-Nov. My data is organized in Jan-December format with daily time step. the following code will re-arrange the data on a mean seasonal basis in the sequential order (e.g Q1= Jan – March, Q2=April – June), however, in North America season are different as I explained earlier. Can someone suggest a way forward or a code piece of code?
A=rand(730,2);t1=(datetime(1981,1,1):datetime(1982,12,31))';TT=timetable(t1,A);TT2=retime(TT,'quarterly','mean');
Many thanks,
Ameer
Best Answer