필터 지우기
필터 지우기

Heat map with three variables x,y and third one as color

조회 수: 3 (최근 30일)
Kasra Sadatsharifi
Kasra Sadatsharifi 2021년 4월 20일
댓글: Kasra Sadatsharifi 2021년 4월 20일
Hi everybody,
I am trying to plot a heat map with three variables in a table I have. the table is attached. The second column 'precision' is suppose to be the color of the heat map. The 5th 'Shear' and 8th 'Size_factor' column are the x and y axis respectively and each of them has a range. x = [0:0.1:0.6] and y = [0.65:0.1:1.35]. The problem I am having is one of the variables is repeated. however, every color value is unique for each x and y variable. When I plot the heat map it returns some weird plot with mean of precision with only one value of y variable. I have attached the heat map as well.
There is something I am missing because it is a straight forward problem. Any help is appreciated.
Thanks.

채택된 답변

Cris LaPierre
Cris LaPierre 2021년 4월 20일
My observation is that you either have the range of y wrong (all values are 10), or you meant to use the variable 'Squish' instead of 'Size_Factor'?
load KasraSadatsharifi_table.mat
heatmap(T,"Shear","Squish",'ColorVariable',"Precision")
  댓글 수: 1
Kasra Sadatsharifi
Kasra Sadatsharifi 2021년 4월 20일
Yes that was the problem...The names were not right. I used size factor instead of squish...thanks Cris

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Thermal Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by