How to Bound Each Output Figure

2 次查看(过去 30 天)
Murat Kocaman
Murat Kocaman 2018-10-4
Hello,
Does anyone know if it is possible to close all output figures while closing any of them once?
At the moment I am using this:
set(h2, 'HandleVisibility', 'off');
uiwait(msgbox('Click OK to close all '));
close all;
set(h2, 'HandleVisibility', 'on');
This works as automatically asking to close all dialogs. I need it without dialog box and with normal clicking on X at the upper left of a figure.
  3 个评论
Stephen23
Stephen23 2018-10-4
编辑:Stephen23 2018-10-4
I agree with Adam: this sounds like the GUI equivalent of putting clear, clc, and close at the top of every script. Rather than indiscriminately closing everything, keeping track of the figures in the first place would be a much better idea: this is exactly what graphics handles are for!

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Just for fun 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by