ts,Pos)
spec = makespec(Range,nPoints,Pos,Amp)
[x,spec] = makespec(...)
</pre>

<!-- ============================================================= -->
<div class="subtitle">Description</div>

<p>
<code>makespec</code> collects the peaks with positions listed in <code>Pos</code>
and amplitudes listed in <code>Amp</code> into a spectral vector <code>spec</code>.
The 2-element array <code>Range = [minX maxX]</code> specifies the range of the abscissa,
and <code>nPoints</code> gives the number of points. If req