to uneven numbers of datapoints in different years and throwing off attempts to reshape.  The <tt>reshapetimeseries</tt> function cleans up that messiness:</p><pre class="codeinput">[ice, yr, tmid] = reshapetimeseries(t, extent_N);

cla;
plot(tmid, ice, <span class="string">'b'</span>)
hold <span class="string">on</span>
</pre><img vspace="5" hspace="5" src="reshapetimeseries_documentation_04.png" alt=""> <p>By default, it uses date bins, which makes sure to keep calendar dates aligned from one year to the 