Using fminbnd to find the max value.

9 次查看(过去 30 天)
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)

采纳的回答

Walter Roberson
Walter Roberson 2020-4-15
编辑:Walter Roberson 2020-4-15
[Bestx, Maxp] = fminbnd(@(x) -Eq1(x), 0.5, 5)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by