how Draw a Tetrahedron in matlab

7 Ansichten (letzte 30 Tage)
arnaud ensberg
arnaud ensberg am 26 Okt. 2015
Kommentiert: Star Strider am 27 Okt. 2015
  • Item one
  • Item twoplease how to draw a Tetrahedron in matlab ?

Antworten (1)

Star Strider
Star Strider am 26 Okt. 2015
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 Kommentare
arnaud ensberg
arnaud ensberg am 27 Okt. 2015
how I can do to have a empty Tetrahedron please?
Star Strider
Star Strider am 27 Okt. 2015
Replace the surf call with mesh.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Lighting, Transparency, and Shading finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by