Last active
October 15, 2015 13:04
-
-
Save joyhuang9473/dce0a2d27258a6ac72ac to your computer and use it in GitHub Desktop.
imagesc 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
% imagesc demo | |
A = magic(5); | |
imagesc(A); | |
title('magic imagesc'); | |
print -dpng 'magicImagesc.png'; | |
% imagesc with color bar | |
imagesc(A),colorbar; | |
title('magic imagesc with colorbar'); | |
print -dpng 'magicImagescWithColorbar.png'; | |
% imagesc with color bar, gray colormap | |
imagesc(A),colorbar,colormap gray; | |
title('magic imagesc with color bar, gray colormap'); | |
print -dpng 'magicImagescWithColorbarGray.png'; | |
clf; | |
close; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment