Skip to content

Instantly share code, notes, and snippets.

@adonese
Created September 10, 2017 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adonese/ed08311150a1aad65166f22907611992 to your computer and use it in GitHub Desktop.
Save adonese/ed08311150a1aad65166f22907611992 to your computer and use it in GitHub Desktop.
matshow: a function to plot matrices
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