Problem in making heatmap
Mostrar comentarios más antiguos
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 comentarios
Cris LaPierre
el 3 de Oct. de 2019
Can you attach a sample data set for us to play around with?
Zeynab Mousavikhamene
el 3 de Oct. de 2019
Editada: Zeynab Mousavikhamene
el 3 de Oct. de 2019
Cris LaPierre
el 3 de Oct. de 2019
How do you envision your heatmap being arranged? These are usually grids. Your data would be a single column.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Distribution Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!