I have a numeric matrix array, with column 1 containing the x coordinate, column 2 containing the y coordinate, and column 3 containing the value at that xy position. How can I create a reliable 2d pcolor plot from this matrix?
The pcolor function requires a matrix argument, and the data provided here are a (5000 x 3) matrix with ‘X’, ‘Y’ and ‘Z’ columns. Creating a matrix from this is necessary if you want to use image, pcolor, or other such functions.
I would skip that and just use scatter3 and then rotate it using the view function: