Finding the minima or maxima point on a graph

Hi, Hope someone can help.
I have a line graph and i want to fin the minima or maxima point, is there a simple finction i can use to the do this?

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 12월 3일
편집: KALYAN ACHARJYA 2019년 12월 3일

0 개 추천

You can find local min islocalmin (first return array)
or
#Example
x=1:100;
c=2;
m=3;
y=m*x+c;
data1=find(y==min(y)); %index of minimum
data2=find(y==max(y)); %index of maximum
Is this?

댓글 수: 1

jack Hardy
jack Hardy 2019년 12월 3일
what do you mean by "first and last return of array"?

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

카테고리

도움말 센터File Exchange에서 Networks에 대해 자세히 알아보기

제품

질문:

2019년 12월 3일

편집:

2019년 12월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by