How can I close my "waitbar" programmatically if I do not have handle to it?
조회 수: 26 (최근 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개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!