Figure that pop up when requested.

Pretty much a figure that pop up like a warning dialog when needed. For example if I press a button and the figure is already open somewhere, the figure should pop up again.

 Accepted Answer

Jan
Jan on 22 Aug 2015
The command figure(FigureHandle) moves the figure to the top, if FigureHandle is an existing figure.

3 Comments

So, let me get this straight... It would be
h = somerandomfigure
figure(h)
I am trying to make this functional programmatically.
Yes, especially when h was stored some time before using figure()
You might want to check whether the handle is still a figure by using ishandle() -- or better yet if you are using a new enough version, isgraphics()

Sign in to comment.

More Answers (1)

How about
uiwait(warndlg(yourMessage));

2 Comments

Well I would like to make my own custom created figure to pop up

Sign in to comment.

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Products

Tags

Asked:

on 22 Aug 2015

Commented:

on 24 Aug 2015

Community Treasure Hunt

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

Start Hunting!