Can you pause a figure without pausing the code execution?
22 views (last 30 days)
Show older comments
Tyler Murray on 5 Dec 2016
Answered: Walter Roberson on 5 Dec 2016
I am using the following code to display an image.
splash = imshow('splash.png');
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 on 5 Dec 2016
You can use timer() with a one-shot event to delete the figure.
More Answers (0)
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!