how to find x value on this graph point name is find??

1 visualización (últimos 30 días)
Rahul punk
Rahul punk el 2 de Abr. de 2019
Comentada: Rahul punk el 15 de Abr. de 2019
Screenshot (284).png
  2 comentarios
Rahul punk
Rahul punk el 2 de Abr. de 2019
i already found all these values
y max
x max
y min
x min
but ,how to find y max previous and next plot point x value??
Rahul punk
Rahul punk el 15 de Abr. de 2019
please help me anyone if u know the answer how to find y max start and ending point in multiple peaks.....

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 15 de Abr. de 2019
Read about min and max. It gives you indices of the respective v alue also.
[val,idx] = max(y) ;
iwant = [x(idx) val] ; % maximum point
iwant1 = [x(idx-1) y(idx-1)] ; % previous point of max
iwant2 = [x(idx+1) y(idx+1)] ; % next point of max

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by