Azzera filtri
Azzera filtri

Using fminbnd to find the max value.

9 visualizzazioni (ultimi 30 giorni)
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)

Risposta accettata

Walter Roberson
Walter Roberson il 15 Apr 2020
Modificato: Walter Roberson il 15 Apr 2020
[Bestx, Maxp] = fminbnd(@(x) -Eq1(x), 0.5, 5)

Più risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by