Using fminbnd to find the max value.
75 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jose Grimaldo
le 15 Avr 2020
Modifié(e) : Walter Roberson
le 15 Avr 2020
How can I find the max value between 0.5 - 5 using fminbnd?
m=.09
b=2.7
Eq1=@(x) b.*(x.^m)
% I try this but I get an error
Maxp=fminbnd(Eq1.*-1,0.5,5)
0 commentaires
Réponse acceptée
Walter Roberson
le 15 Avr 2020
Modifié(e) : Walter Roberson
le 15 Avr 2020
[Bestx, Maxp] = fminbnd(@(x) -Eq1(x), 0.5, 5)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!