I need to draw data like in slice, but only have 2 axes. This picture looks like what i can do now, but i need only colored grid without showing 3'd axis.
This is my code now: (V is a 3D matrix sized (x,y,z)
x_3 = 0:1:15;
y_3 = 0:1:14;
z_3 = 0:1:20;
x = 0;
figure;
s = slice(y_3, x_3, z_3, V, x, [], []);
set(s, 'EdgeColor','none');

1 件のコメント

Kathy Primakova
Kathy Primakova 2022 年 5 月 14 日
I found out that for this purpose I can use image instead of slice and it works great)

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

 採用された回答

Kathy Primakova
Kathy Primakova 2022 年 5 月 14 日

0 投票

image(squeeze(V(1;:;:));
add vectors to resize coordinates az 1st and 2nd parameters if it is necessary.

その他の回答 (1 件)

Torsten
Torsten 2022 年 5 月 1 日

0 投票

Maybe
ax1.ZAxis.Visible = 'off'; % remove z-axis

1 件のコメント

Kathy Primakova
Kathy Primakova 2022 年 5 月 2 日
unfortunately didn't work(

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

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by