how to use the kbhit function to poll for keypress
이전 댓글 표시
i came across this function khbit by Amanda but i cant figure out how to use it. i initialize the function and press a key but it did not register anything at all. anyone with any idea how this function work?
what im trying to do is to see if the user press a key eg: Enter during program execution. if the particular key is pressed, the program should perform other task.
답변 (1개)
Walter Roberson
2013년 10월 23일
0 개 추천
When there is no key in the buffer, kbhit will return [] as the key.
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!