../../../../up.png"></a></h2>
<div class="box"><strong>function [offsets, aligned] =alignwaveforms(template, waveforms, mx) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../../../up.png"></a></h2>
<div class="fragment"><pre class="comment">ALIGNWAVEFORMS    Finds best alignment of waveforms to a reference.
   OFFSETS = ALIGNWAVEFORMS(TEMPLATE,WAVEFORMS,MAXSHIFT), where TEMPLATE
   is an 1 x T vector and WAVEFORMS is an N x T matrix, returns an N 