Figure の visible プロパティを off に設定することで可能です。
下記のサンプルをご参照ください。
h = figure('visible','off');
peaks; % グラフの描画
print(h,'-dtiff','fig1') % ハンドルhのfigureをtiff 形式でファイル保存
上記を実行すると、カレントフォルダに fig1.tiff が作成されます。
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!