ind peaks in vector</span></p><p>
<strong>yp</strong> = <span style="color:red">peak</span>(<strong>y</strong>, <strong>options</strong>) are the values of the maxima in the vector <strong>y</strong>.

</p>
<p>
[<strong>yp</strong>,<strong>i</strong>] = <span style="color:red">peak</span>(<strong>y</strong>, <strong>options</strong>) as above but also returns the indices of the maxima
in the vector <strong>y</strong>.

</p>
<p>
[<strong>yp</strong>,<strong>xp</strong>] = <span style="color:red">peak</span>(