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

조회 수: 1 (최근 30일)
Rahul punk
Rahul punk 2019년 4월 2일
댓글: Rahul punk 2019년 4월 15일
Screenshot (284).png
  댓글 수: 2
Rahul punk
Rahul punk 2019년 4월 2일
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 2019년 4월 15일
please help me anyone if u know the answer how to find y max start and ending point in multiple peaks.....

댓글을 달려면 로그인하십시오.

답변 (1개)

KSSV
KSSV 2019년 4월 15일
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

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by