How to plot multiple layers of heatmap as a function of a third variable in the z direction
7 次查看(过去 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:
0 个评论
回答(1 个)
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Distribution Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!