How can I delay a figure window?

10 views (last 30 days)
Sine  Palm
Sine Palm on 30 Mar 2016
Answered: Walter Roberson on 30 Mar 2016
Hey out there! I have two figure windows, but I want the second to open when the first i closed, and not on the same time. How can I do this? I have tried uiwait, but the figures I want to show is an image and an image scale Can you help me?:)

Answers (2)

Azzi Abdelmalek
Azzi Abdelmalek on 30 Mar 2016
Edited: Azzi Abdelmalek on 30 Mar 2016
use pause(n) , n is the number of seconds
  2 Comments
Sine  Palm
Sine Palm on 30 Mar 2016
Thanks a lot! Do you also know how to close the figure window after it have been shown in n seconds?
Walter Roberson
Walter Roberson on 30 Mar 2016
after the pause(), close() the window.

Sign in to comment.


Walter Roberson
Walter Roberson on 30 Mar 2016
Create the second window but set 'visible' 'off' for it. Then uiwait() for the first figure. Then set the visible to on for the second figure.

Tags

Community Treasure Hunt

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

Start Hunting!