필터 지우기
필터 지우기

How can I plot grid lines on heat map?

조회 수: 3 (최근 30일)
Shao Yang Zhang
Shao Yang Zhang 2021년 6월 29일
댓글: Shao Yang Zhang 2021년 6월 30일
I've been working on identifying the cutoff points for the heat map generated with the elastic modulus and hardness plotted on the X, Y coordinates respectively. I'm currently working on using grid lines to separate the layers of interest in the heat map for further analysis and discussion but couldn't find resource to help get started. Can I get explanation for what the concept of grid line is and how it can be implemented to separate the layers of interest in heat maps? Here's the code that I have so far to generate the heat map:
N = 50; %adjust as desired. This is the resolution.
Specimen_84 = readtable ('Specimen_84.xlsx');
X = Specimen_84{:,17};
Y = Specimen_84{:,18};
Hardness = Specimen_84{:,11};
Elastic_Modulus = Specimen_84{:,8};
tbl = table (X, Y, Hardness, Elastic_Modulus);
figure
h = heatmap(tbl, 'X', 'Y', 'Colorvariable', 'Elastic_Modulus');
figure
h = heatmap(tbl, 'X', 'Y', 'Colorvariable', 'Hardness');
  댓글 수: 2
KSSV
KSSV 2021년 6월 29일
grid on
Shao Yang Zhang
Shao Yang Zhang 2021년 6월 30일
I've been getting this error:
Error in Specimen_84_HeatMap (line 12)
h = heatmap(tbl, 'X', 'Y', 'Colorvariable', 'Elastic_Modulus','GridLines',':');

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Heat and Mass Transfer에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by