필터 지우기
필터 지우기

waitforbuttonpress do not respond to keyboard

조회 수: 1 (최근 30일)
covariant_cat
covariant_cat 2013년 6월 29일
Hi all,
I have a program that calls waitforbuttonpress very frequently. (about 4 times per second). After running it for some time, the waitforbuttonpress becomes not responsive to keyboard activities and it only responds to mouse clicks. Does anybody know why? Is there any way to fix it?
Thank you very much in advance!
Best, Liao
  댓글 수: 1
covariant_cat
covariant_cat 2013년 6월 29일
편집: covariant_cat 2013년 6월 29일
In fact, it is the whole matlab process that becomes unresponsive to keyboard activities. I can't even type any command in the matlab shell, nor edit a .m file. I'm using Matlab 2012a in 64-bit Ubuntu 12.04.

댓글을 달려면 로그인하십시오.

답변 (1개)

Guru
Guru 2013년 7월 3일
Is there a reason you chose to use waitforbuttonpress if you are doing it that frequently??
A much easier and better solution would be to replace all your calls of waitforbuttonpress and change it to
pause
HTH

카테고리

Help CenterFile Exchange에서 Desktop에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by