How do I detect if the input number is within a certain range?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Michael Arvin
am 28 Feb. 2022
Kommentiert: Michael Arvin
am 28 Feb. 2022
How do I detect the upper and lower limit of a number if the input is within a certain range?
For example:
input_Num = 3371;
i = 20000:-2500:2500;
How do code so that I am able determine within which range of i is input_Num? Which in this case, the upper is 5000 and lower is 2500.
Thank you very much!
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Types 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!