# How do i find the amplitude of a peak in my plot?

37 visualizaciones (últimos 30 días)
Alex Sam Thomas el 12 de Mzo. de 2019
Comentada: mart benjamin el 8 de Nov. de 2021
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.
##### 1 comentarioMostrar NingunoOcultar Ninguno
madhan ravi el 12 de Mzo. de 2019
Perhaps:
PEAKS=findpeaks(y);
max(abs(diff(PEAKS)))

Iniciar sesión para comentar.

Star Strider el 12 de Mzo. de 2019
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.
##### 2 comentariosMostrar 1 comentario más antiguoOcultar 1 comentario más antiguo
Star Strider el 20 de Mzo. de 2019
As always, my pleasure.

Iniciar sesión para comentar.

### Más respuestas (1)

Raghunandan V el 12 de Mzo. de 2019
Hello,
Find the slope for each case. When there is change in slope from positive to negative, its a peak. If the slope changes from negetive to positive then its a crust.
formula for slope is (Y2 - Y1) / (X2 - X1)
##### 2 comentariosMostrar 1 comentario más antiguoOcultar 1 comentario más antiguo
mart benjamin el 8 de Nov. de 2021
ymax=max(y)

Iniciar sesión para comentar.

### Categorías

Más información sobre Descriptive Statistics en Help Center y File Exchange.

R2018b

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by