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.

 Réponse acceptée

Jan
Jan le 22 Août 2015

0 votes

The command figure(FigureHandle) moves the figure to the top, if FigureHandle is an existing figure.

3 commentaires

So, let me get this straight... It would be
h = somerandomfigure
figure(h)
I am trying to make this functional programmatically.
Walter Roberson
Walter Roberson le 22 Août 2015
Yes, especially when h was stored some time before using figure()
Walter Roberson
Walter Roberson le 22 Août 2015
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()

Connectez-vous pour commenter.

Plus de réponses (1)

Image Analyst
Image Analyst le 22 Août 2015
How about
uiwait(warndlg(yourMessage));

2 commentaires

Tamfor Dulin
Tamfor Dulin le 22 Août 2015
Well I would like to make my own custom created figure to pop up
Image Analyst
Image Analyst le 24 Août 2015
Tamfor: See the video tutorials on GUIDE: http://blogs.mathworks.com/videos/category/gui-or-guide/

Connectez-vous pour commenter.

Catégories

En savoir plus sur Interactive Control and Callbacks dans Centre d'aide et File Exchange

Produits

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by