필터 지우기
필터 지우기

Heatmap, how to put a particular condition?

조회 수: 4 (최근 30일)
Emiliano Ascenzi
Emiliano Ascenzi 2020년 1월 28일
답변: Nikhil Sonavane 2020년 1월 31일
Given a table with 3 columns (A,B,C), I have discretized A and B like this:
%%%%%% Discretization
bins = 0:0.0003:0.25
X = t.longitude_avg
NuovaX = bins(discretize(X,bins))
bins2 = 0:0.0003:0.25
Y = t.latitude_avg
NuovaY = bins2(discretize(Y,bins2))
I need to represent A and B on a heatmap with "heat" on the map depending on the mean of values of C on every bin of the map.
How can i express cdata to do this?
  댓글 수: 2
Image Analyst
Image Analyst 2020년 1월 29일
Can you post a mock-up of what you'd like to obtain?
Mohammad Sami
Mohammad Sami 2020년 1월 29일
If your variable C is a continous variable, heatmap function does except a color variable
You can change the colormap for a different coloring scheme.

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

답변 (1개)

Nikhil Sonavane
Nikhil Sonavane 2020년 1월 31일
You may refer to the documentation of heatmap for more details.

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by