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

카테고리

도움말 센터File Exchange에서 2-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