How can I limit a set of input data, 6 values, to a min and max point and as an integer
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Andre du Plessis
am 17 Feb. 2020
Beantwortet: KSSV
am 18 Feb. 2020
I am writing a piece of code requesting the user to submit 6 integer numbers in the range [1,59]. I want to make it so that if the user submits an value outside the range or a non integer, the code breaks and displays an error message saying invalid numbers chosen.
3 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Language Fundamentals 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!