Created
September 10, 2017 13:03
-
-
Save adonese/ed08311150a1aad65166f22907611992 to your computer and use it in GitHub Desktop.
matshow: a function to plot matrices
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
function _ = matshow(matrix) | |
# This function plots matrix as an image. | |
max_element = max(max(matrix)); | |
norm_mat = matrix / max_element; | |
imshow(norm_mat); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment