Finding the minima or maxima point on a graph
Show older comments
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?
Answers (1)
KALYAN ACHARJYA
on 3 Dec 2019
Edited: KALYAN ACHARJYA
on 3 Dec 2019
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 Comment
jack Hardy
on 3 Dec 2019
Categories
Find more on Graph and Network Algorithms in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!