Can you pause a figure without pausing the code execution?

6 ビュー (過去 30 日間)
Tyler Murray
Tyler Murray 2016 年 12 月 5 日
回答済み: Walter Roberson 2016 年 12 月 5 日
I am using the following code to display an image.
splash = imshow('splash.png');
pause(5)
delete(splash)
After 5 seconds I want the figure to delete. Using pause though holds the execution of the matlab script for x amount of seconds. Is there a command/way you can hold the figure, in my case, for 5 seconds while having the script run in the background uninterrupted?

採用された回答

Walter Roberson
Walter Roberson 2016 年 12 月 5 日
You can use timer() with a one-shot event to delete the figure.

その他の回答 (0 件)

カテゴリ

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