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
The command figure(FigureHandle) moves the figure to the top, if FigureHandle is an existing figure.

3 个评论

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()

请先登录,再进行评论。

更多回答(1 个)

How about
uiwait(warndlg(yourMessage));

2 个评论

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

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by