フィルターのクリア

Using fminbnd to find the max value.

9 ビュー (過去 30 日間)
Jose Grimaldo
Jose Grimaldo 2020 年 4 月 15 日
編集済み: Walter Roberson 2020 年 4 月 15 日
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 Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by