Finding the minima or maxima point on a graph
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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?
0 commentaires
Réponses (1)
KALYAN ACHARJYA
le 3 Déc 2019
Modifié(e) : KALYAN ACHARJYA
le 3 Déc 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?
Voir également
Catégories
En savoir plus sur Directed Graphs dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!