Problem in making heatmap
이전 댓글 표시
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
Cris LaPierre
2019년 10월 3일
Can you attach a sample data set for us to play around with?
Zeynab Mousavikhamene
2019년 10월 3일
편집: Zeynab Mousavikhamene
2019년 10월 3일
Cris LaPierre
2019년 10월 3일
How do you envision your heatmap being arranged? These are usually grids. Your data would be a single column.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!