필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
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:

답변 (1개)

Chunru
Chunru 2021년 12월 31일
[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
Ali Izadi Rad
Ali Izadi Rad 2021년 12월 31일
편집: Ali Izadi Rad 2021년 12월 31일
Thanks for your answer, but I'm looking for solution based on the heatmap. the meshgrid is not applicable to my problem.

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

카테고리

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