Please help me to look at the code below. Thx

1 Ansicht (letzte 30 Tage)
Tianlan Yang
Tianlan Yang am 19 Okt. 2021
Kommentiert: Tianlan Yang am 19 Okt. 2021
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.

Akzeptierte Antwort

Steven Lord
Steven Lord am 19 Okt. 2021
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 Kommentare
Tianlan Yang
Tianlan Yang am 19 Okt. 2021
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 am 19 Okt. 2021
It works thank you so much

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by