Hi, is there any way to get the time for how long the mouse button is pressed. I have to detect the mouse press and release events also
how to detect mouse click and release using matlab commands
조회 수: 8 (최근 30일)
이전 댓글 표시
I want to record the duration of mouse press. how can I do it I`m able to capture the mouse press event. Pls help me how to capture the mouse release event also
Thanks chandrasekhar
채택된 답변
Walter Roberson
2013년 6월 8일
For the timing, you can store the result of tick() somewhere when you get the button down event, and then toc() against that value when you get the button up event.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 ActiveX에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!