MATLAB: Save figure

save figure

How do I save this figure and supress so that the figure isn't actually shown?
data=load('data.txt')
plot(x)

Best Answer

h=figure('visible','off');
plot(h,1:10);
saveas();
close(h);
Related Question