deactivate ButtonDownFcn ? stupid question
显示 更早的评论
Hey Guys,
stupid Question: I have created a function(pushbutton) with the ButtonDownFcn to work with my Plot. Its task is to zoom in everytime i click on the plot. Now is there a way, to deactivate the ButtonDownFcn ? so i can click on a plot without triggering the fcn ?
采纳的回答
更多回答(1 个)
Adam
2014-8-11
2 个投票
Can you not just turn your push button into a toggle and have it set ButtonDownFcn to [] if it is currently set to whatever you usually set it to?
类别
在 帮助中心 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!