Please help me to look at the code below. Thx

1 回表示 (過去 30 日間)
Tianlan Yang
Tianlan Yang 2021 年 10 月 19 日
コメント済み: Tianlan Yang 2021 年 10 月 19 日
I want to get the max and min value of the equation, using the last three lines of code. BuI I don't know what's wrong with the issue.

採用された回答

Steven Lord
Steven Lord 2021 年 10 月 19 日
Change the name of the output variable on line 15. When a variable named min exists you will not be able to call the min function.
In fact if you're looking for the first instance of the minimum value don't use find. Call min with two output arguments.
  6 件のコメント
Tianlan Yang
Tianlan Yang 2021 年 10 月 19 日
I have checked lots of times, I don't have any min variables in my workspace, but it still not works
Tianlan Yang
Tianlan Yang 2021 年 10 月 19 日
It works thank you so much

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

その他の回答 (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