Created
November 26, 2014 01:41
-
-
Save bsima/a7cba593a05bbe9321ad to your computer and use it in GitHub Desktop.
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
% Say you have a matrix and you want to quickly understand what the | |
% data distribution looks like. | |
% The following snippet will do the trick. | |
A = magic(5) % create a random matrix | |
imagesc(A), colorbar, colormap grey; | |
% This will create a greyscale image of the values of the matrix, with | |
% each number corresponding to a different value of grey. It will also | |
% give you a key to which you may refer. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment