ass="comment">%   mean squared error between WAVEFORMS(k,:) and TEMPLATE.</span>
0010 <span class="comment">%</span>
0011 <span class="comment">%   If TEMPLATE is an 1 x T x D array and WAVEFORMS is an N x T x D array,</span>
0012 <span class="comment">%   ALIGNWAVEFORMS finds OFFSETS that minimize the mean squared error of</span>
0013 <span class="comment">%   simultaneously shifting all pages of WAVEFORMS for a given row by the</span>
0014 <span class="comment">%   same amount.</span>
0015 <span class="co