Finding the minima or maxima point on a graph

1 回表示 (過去 30 日間)
jack Hardy
jack Hardy 2019 年 12 月 3 日
編集済み: KALYAN ACHARJYA 2019 年 12 月 3 日
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 日
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"?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDirected Graphs についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by