MATLAB maximum value under a certain value
28 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
samantha
am 7 Dez. 2022
Bearbeitet: Arif Hoq
am 7 Dez. 2022
How do I find the maximum value of a number that is less than a value. For example, max(19,23) gives a max of 23, but how do I find the max if its under 21. So in this case, I want it to give me 19.
I am wanting to find the largest element of possibilities which is greater than or equal to 17, and less than or equal to 21.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Askic V
am 7 Dez. 2022
v = 1:20
max_treshold = 15;
b_max = max(v(v < 15))
This is pretty easy in Matlab.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!