an class="comment">% [1:numsamples] become meaningless; but we're not interested in these anyway.</span>
0108 pp = spline((1:numsamples), spikes.waveforms);
0109 
0110 <span class="comment">% The coefficients from 'spline' come out ordered by column rather than by</span>
0111 <span class="comment">% row/waveform, so we reorder.</span>
0112 pp.coefs = reshape(pp.coefs, numspikes, numsamples-1, []);
0113 pp.coefs = permute(pp.coefs, [2 1 3]);
0114 
0115 <span class="comment">% DEBUGGING -- see the splie</span