Problem in making heatmap
Show older comments
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 Comments
Cris LaPierre
on 3 Oct 2019
Can you attach a sample data set for us to play around with?
Zeynab Mousavikhamene
on 3 Oct 2019
Edited: Zeynab Mousavikhamene
on 3 Oct 2019
Cris LaPierre
on 3 Oct 2019
How do you envision your heatmap being arranged? These are usually grids. Your data would be a single column.
Accepted Answer
More Answers (0)
Categories
Find more on Data Distribution Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!