MATLAB: How do i find the amplitude of a peak in the plot

amplitudeMATLABpeak analysispeaks

I want to find the peak with the most height(not the maximum y value, but the distance from the local minima just before the peak to the peak). Kindly help out.

Best Answer

I want to find the peak with the most height(not the maximum y value, but the distance from the local minima just before the peak to the peak).
That seems to be defined by the ‘prominence’ of the peak. You can set a minimum for it as 'MinPeakProminence' (link) if you already know what it is, or you can have findpeaks output it in the p (link) output.