How do I make a pcolor plot use the first row and column of the data for the X and Y axes?
Ältere Kommentare anzeigen
I need to do an interactive image plot of data that are in matrix form. The first row and column are the X and Y values, the rest of the matrix represents the corresponding Z values. A pcolor plot plots all the data in the matrix. How do I make it use the first row and column for the X and Y axes?
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 30 Dez. 2013
This is false: "A pcolor plot plots all the data in the matrix." Just try it
myMatrix = magic(4); % Make 4x4 array
pcolor(myMatrix); % Displays 3x3 image.
If I were you I'd use imshow() instead, or image() or imagesc().
1 Kommentar
Chad Greene
am 1 Mai 2015
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!