how to interrupt a while loop??
显示 更早的评论
in GUI, I try to interrupt a while loop...let's say.. a program initiate while loop when button A are pushed, and i want to stop/interupt the loop by pushing button B.. any idea????
采纳的回答
更多回答(1 个)
Geoff
2012-6-6
0 个投票
In your GUI, set some user data to your GUI handle.
In your loop, check this data and break accordingly.
类别
在 帮助中心 和 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!