Looking for a Surface - like plot
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm wanting to plot a 2d array in a sort of heatmap form, with different colours representing different valuess, similiar to this image.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/246189/image.png)
where I have a 4x3 element array.
However, when I use surf (or variants of) it seems to link the colour to surrounding elements, rather than the value in each element itself. In other words, I will end up with a plot of 3x2 squares for the example array above.
Can someone suggest the exact sort of plot I should be looking for? I'm not a fan of contour as that seems to extrapolate between samples and my data is discrete. Thanks in advance.
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Distribution Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!