saving plot figures without opening

24 ビュー (過去 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 Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by