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
15 次查看(过去 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!