how to display elements of a 2D matrix as color-coded squares
242 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
like for a 16x16 matrix:
0 Kommentare
Akzeptierte Antwort
bym
am 27 Mai 2012
imagesc(your_matrix)
2 Kommentare
Image Analyst
am 27 Mai 2012
Or use imshow() (if you have the Image Processing Toolbox) and apply a colormap (of which there are a wide variety of colormaps built in to MATLAB). But whatever you do, don't use pcolor() for this purpose.
Weitere Antworten (1)
Ahmed Osman
am 29 Dez. 2017
What if I want to plot it into a map with longitude and Latitude axes??
0 Kommentare
Siehe auch
Kategorien
Mehr zu Blue finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!