how to off figure popup window?

조회 수: 38(최근 30일)
garima sharma
garima sharma 2021년 4월 15일
댓글: garima sharma 2022년 1월 30일
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!
  댓글 수: 2
garima sharma
garima sharma 2021년 4월 18일
Thank you for replying.
yes, it is
figure('visible', 'off');
to capture the content of figure, I am using following command
print -f1 -dmeta
So basically, i have tried to generatre a figure then capture it and save into word file, then off the visibility of figure window to stop poping-up a window. but its not working in my case.

댓글을 달려면 로그인하십시오.


Richard Quist
Richard Quist 2021년 11월 29일
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
print(f, '-dmeta');
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
  댓글 수: 1
garima sharma
garima sharma 2022년 1월 30일
I am using R2016a

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by