필터 지우기
필터 지우기

How to make my window close on a timer

조회 수: 4 (최근 30일)
Rainaire Hansford
Rainaire Hansford 2014년 8월 27일
댓글: Asit Kumar 2018년 7월 4일
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
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
Bruno Pop-Stefanov 2014년 8월 29일
>> f = figure;
>> t = timer('ExecutionMode','singleShot','StartDelay',20,'TimerFcn',@(~,~)close(f));
>> start(t)
  댓글 수: 5
Jan
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
Asit Kumar 2018년 7월 4일

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by