pan class="string">'waveforms'</span>) || (size(spikes.waveforms, 1) &lt; 1))
0050     error(<span class="string">'SS:waveforms_undefined'</span>, <span class="string">'The SS object does not contain any waveforms!'</span>);
0051 <span class="keyword">elseif</span> (~isfield(spikes, <span class="string">'threshT'</span>))
0052     error(<span class="string">'SS:threshT_undefined'</span>, <span class="string">'The SS object must define the sample index of threshold crossing.'</span>);
0053 <span class="keywo