how to off figure popup window?
32 views (last 30 days)
In my script, I am trying to save the generated figures from matlab to word file, while saving the figure a continuous pop-up window is generating.
I want to hide the figure pop-up window. I tried with the following command,
but its not stopping the pop-up window instead hide plot in figure pop-up window and saved word file which doesnot have plots (it has only blank boxes with no plot in it).
is there any way to reslove this problem?
Thank you in advance!
Richard Quist on 29 Nov 2021
You didn't mention what version of MATLAB you are using but something like this should work:
% create a figure and remember its handle
f = figure('visible', 'off');
% create a plot inside that figure
% copy the figure to the clipboard
If you're using R2020a or later you may be able to replace the print call above with a call to copygraphics
% available in R2020a and later