Borrar filtros
Borrar filtros

Heatmap, how to put a particular condition?

4 visualizaciones (últimos 30 días)
Emiliano Ascenzi
Emiliano Ascenzi el 28 de En. de 2020
Respondida: Nikhil Sonavane el 31 de En. de 2020
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 comentarios
Image Analyst
Image Analyst el 29 de En. de 2020
Can you post a mock-up of what you'd like to obtain?
Mohammad Sami
Mohammad Sami el 29 de En. de 2020
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.

Iniciar sesión para comentar.

Respuestas (1)

Nikhil Sonavane
Nikhil Sonavane el 31 de En. de 2020
You may refer to the documentation of heatmap for more details.

Categorías

Más información sobre Data Distribution Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by