s than the input.</p><p><tt>[xg, yr] = reshapetimeseries(t, x, 'pivotdate, [mon day])</tt> set the pivot date where the dataset wraps from one year to the next.  By default this is [1 1], indicating that each new column of the output <tt>xg</tt> starts on Jan 1 of the corresponding year in vector <tt>yr</tt>.</p><p><tt>[xg, yr, tmid] = ...</tt> returns the additional output, <tt>tmid</tt> holding datetimes corresponding to the rows of <tt>xg</tt>.  The year in this vector is set to the first non-leap year i