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 '));
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.