uested, the abscissa is
returned in <code>x</code>.
</p>

<p>
If <code>Amp</code> is not given, all amplitudes are set to 1.
</p>

<p>
Peaks that fall outside the specified range are neglected.
</p>


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

<p>
A simple demonstration bins a number of peaks with random
positions and amplitudes into a spectral vector.
</p>

<pre class="matlab">
N = 20;
pos = rand(1,N);
amp = rand(1,N);
[x,s] = makespec([-0.2