2 seconds mouse click binary recording.
1 次查看(过去 30 天)
显示 更早的评论
Dear Friends,
I would like to know whether there is a very easy to way to collect binary data on mouse clicks. Let's assume a zero-array of 2000 data corresponding 2 seconds. I need to make them 1 once the user clicks somewhere on the screen and/or holds, the others will remain zero when idle. The 2 seconds recording period will start as the first mouse click.
Is there an easy way to do that or should I write three mouse functions separately for a time loop??
Thank you so much for your replies.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!