Last active
October 15, 2015 13:04
-
-
Save joyhuang9473/38c5e1958f21dfaaf82d to your computer and use it in GitHub Desktop.
figure demo with Octave
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% figure demo | |
A = magic(5); | |
figure(1),imagesc(A); | |
title('figure 1'); | |
print -dpng 'magicImagescInFigure1.png'; | |
figure(2),imagesc(A),colormap gray; | |
title('figure 2'); | |
print -dpng 'magicImagescGrayInFigure2.png'; | |
% clean and close figure2 | |
clf; | |
close; | |
% clean and close figure1 | |
clf; | |
close; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment