Info
此问题已关闭。 请重新打开它进行编辑或回答。
read mouse buttons without locking the code
4 次查看(过去 30 天)
显示 更早的评论
I need to present diffent images while monitoring mouse actions.
The ginput function seem adequate for me, however, it is not possible to execute other commands while ginput is turned on. Is it possible to run these actions in parallel?
Another posibility could be to alternate rapidly between graphic functions and ginput, but it would be necessary to turn ginput off after a time period...
does anyone have a suggestion?
thanks rp
0 个评论
回答(1 个)
Sean de Wolski
2012-2-22
Use the currentpoint property of an axes or figure instead of ginput. ginput is just a fancy wrapper around this anyway.
docsearch axes properties
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!