How to get a user to input a time?
이전 댓글 표시
Hello
I'm looking to prompt the user to input a time in HH:MM. I then need to check to see if it is a valid time of day. The user needs to input four separate times for the day. Any ideas on how I can start or perhaps any functions you can recommend?
답변 (1개)
Walter Roberson
2014년 2월 28일
t1 = input('Enter first time in HH:MM', 's');
Now you can do the checking on the string that is in t1.
카테고리
도움말 센터 및 File Exchange에서 Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!