Effacer les filtres
Effacer les filtres

Looking for a Surface - like plot

3 vues (au cours des 30 derniers jours)
Ted Baker
Ted Baker le 2 Nov 2019
Commenté : Star Strider le 3 Nov 2019
I'm wanting to plot a 2d array in a sort of heatmap form, with different colours representing different valuess, similiar to this image.
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.

Réponse acceptée

Star Strider
Star Strider le 2 Nov 2019
I am not certain what you want.
However the heatmap (R2017a and later) function and image may be options.
  2 commentaires
Ted Baker
Ted Baker le 3 Nov 2019
Thank you Star Strider, image turned out to be exactly what I was after.
Star Strider
Star Strider le 3 Nov 2019
As always, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

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!

Translated by