agment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function spikes = ss_dejitter(spikes, maxshift)</a>
0002 
0003 <span class="comment">% SS_DEJITTER  Aligns waveform peaks.</span>
0004 <span class="comment">%     SPIKES = SS_DEJITTER(SPIKES) takes and returns a spike-sorting object</span>
0005 <span class="comment">%     SPIKES and dejitters the spike waveforms using a 'center-of-mass'</span>
0006 <span class="comment">%     method with a maximum shift of 3 (see below).</span>
0007 <span 