Skip to content

Instantly share code, notes, and snippets.

Created March 7, 2013 07:26
Show Gist options
  • Save anonymous/5106197 to your computer and use it in GitHub Desktop.
Save anonymous/5106197 to your computer and use it in GitHub Desktop.
Print a figure to a PNG image file.
% Plot something below here
filename = 'image.png';
format = '-dpng';
print(filename, format);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment