Problem in making heatmap
Afficher commentaires plus anciens
I have array called CV which has a value that can be 0 to 1 or bigger than one. CV is an array that has 35 values. I want to make a heatmap to show the value of each CV. I wasn the zero to be very ligth green as it increases to 1 becomes darker green and after one becomes red.
I was thinking I can use h = heatmap(xvalues,yvalues,cdata) line but I dont know what would be corresponding x and y and how I can design colors?
Any help would be highly appreciated.
I attached the EXCEL and sample image of it.
3 commentaires
Cris LaPierre
le 3 Oct 2019
Can you attach a sample data set for us to play around with?
Zeynab Mousavikhamene
le 3 Oct 2019
Modifié(e) : Zeynab Mousavikhamene
le 3 Oct 2019
Cris LaPierre
le 3 Oct 2019
How do you envision your heatmap being arranged? These are usually grids. Your data would be a single column.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Data Distribution Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!