How can I close my "waitbar" programmatically if I do not have handle to it?
99 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2018-8-16
回答: MathWorks Support Team
2018-9-5
A function that I am using is opening a new waitbar everytime I open it:
>> waitbar(0,'Please wait...')
Since I will be calling this function repetitively from my script file, I will have a lot of these waitbar windows opened.
Adding the following to my script does not help:
>> close all
How can I close the "waitbar" windows programmatically?
采纳的回答
MathWorks Support Team
2018-8-16
You can use the "findall" function and 'TMWWaitbar' as the 'tag' input to get handles to all the waitbars:
>>F = findall(0,'type','figure','tag','TMWWaitbar')
and then delete all of them:
>> delete(F)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!