how Draw a Tetrahedron in matlab

조회 수: 7 (최근 30일)
arnaud ensberg
arnaud ensberg 2015년 10월 26일
댓글: Star Strider 2015년 10월 27일
  • Item one
  • Item twoplease how to draw a Tetrahedron in matlab ?

답변 (1개)

Star Strider
Star Strider 2015년 10월 26일
Item one is easy: ... !
Item two: This is one possibility:
X = [1 0 1; 0 0 0; 0 0 0]*1.5;
Y = [0 0 0; 1 0 1; 0 0 0]*1.5;
Z = [0 1 0; 0 0 0; 1 0 1]*1.5;
figure(1)
surf(X, Y, Z)
axis equal
axis([-1 2 -1 2 -1 2])
Experiment with it and with the hgtransform function and its friends to get the result you want.
  댓글 수: 2
arnaud ensberg
arnaud ensberg 2015년 10월 27일
how I can do to have a empty Tetrahedron please?
Star Strider
Star Strider 2015년 10월 27일
Replace the surf call with mesh.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by