Plot a regular pyramid using given Cartesian coordinates
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nidhi Nagar
am 27 Jan. 2022
Kommentiert: Nidhi Nagar
am 27 Jan. 2022
Plot a regular pyramid having Cartesian coordinates as X= [0,1, ½ , 0, ½ , 1 , ½ , ½ ] Y= [0,0,sqrt(3)/2,0,1/sqrt(3)/2,0, sqrt(3)/2,1/sqrt(3)/2] Z = [0, 0, 0, 0 sqrt (2/3), 0, 0, sqrt (2/3)] Using plot3 command.
2 Kommentare
Ankit
am 27 Jan. 2022
did you wrote already some code and tried finding more about plot3 ?
You can google, search MATLAB help and try to learn more about MATLAB using their Onramp online course.
Akzeptierte Antwort
DGM
am 27 Jan. 2022
X = [0 1 0.5 0 0.5 1 0.5 0.5];
Y = [0 0 sqrt(3)/2 0 1/sqrt(3)/2 0 sqrt(3)/2 1/sqrt(3)/2];
Z = [0 0 0 0 sqrt(2/3) 0 0 sqrt(2/3)];
plot3(X,Y,Z)
grid on
axis equal
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Language Fundamentals 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!
