Save figure without plotting - Ubuntu specific

1 次查看(过去 30 天)
Hello,
I am running a batch script to `imagesc` some matrices and I want to save the figures without them showing up on the screen. I am doing:
h=figure('Visible','Off');
dlmwrite('sk_vmat_col1.txt',sk_Vmat1,'delimiter','\t','precision','%.8f');
imagesc(sk_Vmat1)
title('Skew symmetric matrix from first column of U in U,D,V=svd(C)', 'FontSize',16)
box on
saveas(h,'sk_Vmat1','png')
close
But the images still show on the screen, albeit very briefly, (super annoying thou). I think this is a Ubuntu specific problem with R2016a. When I run the same thing on a MacOS the images do not show up.
Does anyone know a work around?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by