Using fminbnd to find the max value.
49 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jose Grimaldo
el 15 de Abr. de 2020
Editada: Walter Roberson
el 15 de Abr. de 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 comentarios
Respuesta aceptada
Walter Roberson
el 15 de Abr. de 2020
Editada: Walter Roberson
el 15 de Abr. de 2020
[Bestx, Maxp] = fminbnd(@(x) -Eq1(x), 0.5, 5)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!