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

4 ビュー (過去 30 日間)
Ali Izadi Rad
Ali Izadi Rad 2021 年 12 月 30 日
コメント済み: Chunru 2021 年 12 月 31 日
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.
Chunru
Chunru 2021 年 12 月 31 日
So what data do you have?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by