>
0128 <span class="comment">% gives the rth spike (within roundoff error).</span>
0129 padzeros = zeros(1, numspikes, 4);
0130 pp.coefs = cat(1, pp.coefs, padzeros);
0131 pp.coefs(numsamples,:,4) = spikes.waveforms(:,end)';
0132 
0133 <span class="comment">% Make the 'strung-together' version.</span>
0134 pp.coefs = reshape(pp.coefs, [], 4);
0135 
0136 <span class="comment">% Rework the remaining information in the piecewise polynomial to be consistent.</span>
0137 pp.pieces = numsamples * numspikes;   pp.