How to plot multiple layers of heatmap as a function of a third variable in the z direction
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/848575/image.png)
0 Commenti
Risposte (1)
Chunru
il 31 Dic 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 Commenti
Vedere anche
Categorie
Scopri di più su Data Distribution Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!