Borrar filtros
Borrar filtros

How to detect a peak at a given location?

1 visualización (últimos 30 días)
kiruthika r
kiruthika r el 25 de Oct. de 2015
Editada: Andrei Bobrov el 25 de Oct. de 2015
I have a plot. I have to detect the peak at a given location. But the peak is not starting from the given point. My location point is 410 in x-axis.

Respuestas (1)

Andrei Bobrov
Andrei Bobrov el 25 de Oct. de 2015
Editada: Andrei Bobrov el 25 de Oct. de 2015
A = [400,192;...;410,204;...;420,188]; - your array.
[ypeak,ii] = findpeaks(A(:,2));
xpeak = A(ii,1);

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by