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.

 採用された回答

Jan
Jan 2015 年 8 月 22 日

0 投票

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

3 件のコメント

Tamfor Dulin
Tamfor Dulin 2015 年 8 月 22 日
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 2015 年 8 月 22 日
Yes, especially when h was stored some time before using figure()
Walter Roberson
Walter Roberson 2015 年 8 月 22 日
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()

サインインしてコメントする。

その他の回答 (1 件)

Image Analyst
Image Analyst 2015 年 8 月 22 日

0 投票

How about
uiwait(warndlg(yourMessage));

2 件のコメント

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

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

製品

タグ

質問済み:

2015 年 8 月 22 日

コメント済み:

2015 年 8 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by