How to plot multiple layers of heatmap as a function of a third variable in the z direction

3 visualizaciones (últimos 30 días)
I wonder how can I plot multiple layers of heatmap and arrange them a function of third vairable in the z direction? like the following image:

Respuestas (1)

Chunru
Chunru el 31 de Dic. de 2021
[X,Y,Z] = meshgrid(-2:.2:2);
V = X.*exp(-X.^2-Y.^2-Z.^2);
zslice = [-1.2,0,1.2];
yslice = [];
xslice = [];
slice(X,Y,Z,V,xslice,yslice,zslice)
  2 comentarios
Ali Izadi Rad
Ali Izadi Rad el 31 de Dic. de 2021
Editada: Ali Izadi Rad el 31 de Dic. de 2021
Thanks for your answer, but I'm looking for solution based on the heatmap. the meshgrid is not applicable to my problem.

Iniciar sesión para comentar.

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