How can I delay a figure window?

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

Thanks a lot! Do you also know how to close the figure window after it have been shown in n seconds?
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

Asked:

on 30 Mar 2016

Answered:

on 30 Mar 2016

Community Treasure Hunt

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

Start Hunting!