How do I make a pcolor plot use the first row and column of the data for the X and Y axes?
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 30 de Dic. de 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 comentario
Chad Greene
el 1 de Mayo de 2015
Categorías
Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!