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