How to make my window close on a timer

5 ビュー (過去 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 Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by