필터 지우기
필터 지우기

Plot a regular pyramid using given Cartesian coordinates

조회 수: 7 (최근 30일)
Nidhi Nagar
Nidhi Nagar 2022년 1월 27일
댓글: Nidhi Nagar 2022년 1월 27일
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
Ankit
Ankit 2022년 1월 27일
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.
Nidhi Nagar
Nidhi Nagar 2022년 1월 27일
Actually it's a question from my assignment. I need help in solving it.

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

채택된 답변

DGM
DGM 2022년 1월 27일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by