I have X, Y and Z vectors where X and Y correspond to the x, y co-ordinates and Z is the value at that point. I want to generate a plot in which the elements of a matrix 'Z' are represented by colored squares in a 2-D grid. The color of a square in the grid is determined by the Z value of the square. I want to specify my own colormap for the plot.
MATLAB: How to generate a 2D grid plot the data
heatmapMATLAB
Related Question
- Can I create a vector with a specific pattern in Matlab
- Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
- Solving symbolic trig equation in terms of theta, using “sol.”
- Use ginput to crop an image
- “Index exceeds matrix dimensions” while loop condition
Best Answer