Increment variable as function of time a button is held down
8 ビュー (過去 30 日間)
古いコメントを表示
Is there a way to somehow capture the amount of time that a button is held down, and use it to update, in real time, a variable? my specific interest is in using a button to spin a 3d figure. I can get it to do so, but only in increments (click,*spin n rads*,click,*spin n rads* etc).
I have looked for something like this and have been unable to find an answer.
thanks, Alex
0 件のコメント
採用された回答
Jan
2012 年 4 月 27 日
You can use the 'WindowsButtonUpFcn' of the figure to catch the release of the button.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!