MATLAB Answers

0

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

Asked by Rahul punk on 2 Apr 2019
Latest activity Commented on by Rahul punk on 15 Apr 2019
Screenshot (284).png

  2 Comments

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??
please help me anyone if u know the answer how to find y max start and ending point in multiple peaks.....

Sign in to comment.

Tags

1 Answer

Answer by KSSV
on 15 Apr 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

  3 Comments

Solved or not?

Sign in to comment.