Skip to content

Instantly share code, notes, and snippets.

@markuman
Created October 2, 2015 08:40
Show Gist options
  • Save markuman/7ef3394404ef24baf550 to your computer and use it in GitHub Desktop.
Save markuman/7ef3394404ef24baf550 to your computer and use it in GitHub Desktop.
multiple silent/invisible plots
% multiple silent/invisible plots
a = figure;
set(a,'visible','off');
x=0:0.1:2*pi;
for i = 2:4;
plot(x,sin(i*x));
print("-djpeg", strcat(sprintf("%03d", i-1), ".jpg"));
set(a,'visible','off');
endfor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment