フィルターのクリア

find the minimum value of y for positive vales of x

2 ビュー (過去 30 日間)
Aaron Aguilar
Aaron Aguilar 2020 年 9 月 3 日
コメント済み: per isakson 2020 年 9 月 3 日
i have xmin=min(y(x>0)); where x=[-100:100] & y =x^3+60x^2-50 it gives me -50 which is wrong
aloso i have xmin=min(y(0:x(end))); where x=[-100:100] & y =x^3+60x^2-50 it gives me -50 which is wrong answer
any ideas? is my expression wrong ?
  1 件のコメント
per isakson
per isakson 2020 年 9 月 3 日
I fail to run the code snippets of your question

サインインしてコメントする。

採用された回答

per isakson
per isakson 2020 年 9 月 3 日
Try this
%%
x = (-100:100);
y = x.^3+60*(x.^2)-50;
%%
xmin = min(y(x>0))
which returns
xmin =
11
>>

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by