How to make my window close on a timer
조회 수: 4 (최근 30일)
이전 댓글 표시
does any one known how to make a timer so that it closes the window that im using? Im trying to make a window pop up in GUI stay for like 20 seconds then close on its own. Please help
댓글 수: 1
Geoff Hayes
2014년 8월 27일
Rainaire - what kind of window are you popping up? Another GUI or some kind of dialog?
답변 (1개)
Bruno Pop-Stefanov
2014년 8월 29일
>> f = figure;
>> t = timer('ExecutionMode','singleShot','StartDelay',20,'TimerFcn',@(~,~)close(f));
>> start(t)
댓글 수: 5
Jan
2018년 7월 4일
@Asit Kumar: You mean a window, which does not belong to Matlab? This is new question, so please open a new thread.
Asit Kumar
2018년 7월 4일
Please follow the link to a new question. Thank you.
참고 항목
카테고리
Help Center 및 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!