ETS = ALIGNWAVEFORMS(TEMPLATE,WAVEFORMS,MAXSHIFT), where TEMPLATE</span>
0005 <span class="comment">%   is an 1 x T vector and WAVEFORMS is an N x T matrix, returns an N x 1</span>
0006 <span class="comment">%   vector OFFSETS giving a shift in the range [-MAXSHIFT,MAXSHIFT] for</span>
0007 <span class="comment">%   each row of WAVEFORMS.  If OFFSETS(k) is X, linear interpolation of</span>
0008 <span class="comment">%   WAVEFORMS(k,:) on an abcissa shifted by X samples will minimize the</span>
0009 <span cl