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.

 Akzeptierte Antwort

Jan
Jan am 22 Aug. 2015

0 Stimmen

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

3 Kommentare

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 am 22 Aug. 2015
Yes, especially when h was stored some time before using figure()
Walter Roberson
Walter Roberson am 22 Aug. 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()

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Image Analyst
Image Analyst am 22 Aug. 2015

0 Stimmen

How about
uiwait(warndlg(yourMessage));

2 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by