필터 지우기
필터 지우기

saving plot figures without opening

조회 수: 1 (최근 30일)
Mehmet
Mehmet 2014년 9월 16일
답변: Joseph Cheng 2014년 9월 16일
Hello, I would like to save some plot figures withoput displaying them on the screen. I used
set(fig, 'visible','off')
saveas(fig,'file.fig','fig')
set(fig, 'visible','on')
close(fig
But, what it savves is a blank .bmp file.
Does anyone have an idea?

답변 (1개)

Joseph Cheng
Joseph Cheng 2014년 9월 16일
The saveas, from what i can understand, does a screen capture but since the figure is invisible there isn't anything there. try using the print command to get your bmp.
print (fig, '-dbmp', 'file.bmp')

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by