Haifeng GONG
unread,Aug 30, 2010, 3:34:38 PM8/30/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MathTools
Sometimes, we need to save a Matlab figure without showing it. For
example, if we use Matlab via ssh, showing figures makes the program
quite slow.
figure('visible', 'off');
t=0:0.1:2*pi;
plot(sin(t)+sin(2*t), cos(t)+cos(2*t))
saveas(gcf, 'hello.pdf');