3D plotting base surface

조회 수: 5 (최근 30일)
Darkhan Sheldebayev
Darkhan Sheldebayev 2019년 12월 8일
답변: Star Strider 2019년 12월 8일
Hi there, i have a 3D figure i need to make a base for that . Should it be rectancgle and how to fill it?Many thanks :o

답변 (1개)

Star Strider
Star Strider 2019년 12월 8일
I am not certain what you are asking.
The plot appears to be by the stem3 function.
Try this:
x = randn(1, 10);
y = randn(1, 10);
z = randn(1, 10);
figure
stem3(x, y, z, 'filled')
hold on
xl = xlim;
yl = ylim;
hs = surf(xl, yl, zeros(size(xl(:)*yl)));
set(hs, 'FaceAlpha',0.2, 'FaceColor',[0.6 0.6 0.6])
hold off
grid on
producing:
3D plotting base surface - 2019 12 08.png
Experiment to get different results.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by