This is not currently possible in MATLAB.
As a workaround, please specify 'visible' option when calling 'openfig' to open the figure after it has been saved.
You can also set the "CreateFcn" property of the figure to a function which sets the "Visible" property to on. This allows you to save the figure when invisible but always make it visible when opening it later.
hFig = figure('Visible', 'off');
plot(1:10)
set(hFig, 'CreateFcn', 'set(gcbo,''Visible'',''on'')');
savefig(hFig, 'savedFigure.fig')
Best Answer