Resume after Pausing (uicontrol)
5 次查看(过去 30 天)
显示 更早的评论
Hi, I have plotted 3 buttons in a figure, 1. one pauses the execution of code, 2. second one should resume the execution (i can resume by pressing any keyboard button but i would like to do this with a button) and 3. third one should exit the loop (end the execution of code). 'break' is not working in this context and for now i have changed the value of loop variable so that condition is no longer met, but that only works for 'while' loop (not for 'for' loops), any better method would be welcome.
uicontrol('Style', 'pushbutton', 'String', 'Pause','Position', [10 10 60 30],'Callback', 'pause');
0 个评论
回答(2 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!