Plotting 3D

조회 수: 1 (최근 30일)
Raviteja
Raviteja 2011년 8월 10일
>> Cordinate(1,:)=[2 1 0];
Cordinate(2,:)=[0 1 1];
Cordinate(3,:)=[1 1 -2];
Cordinate(4,:)=[1 0 -2];
Cordinate(5,:)=[1 1 1];
Cordinate(6,:)=[0 0 1];
>> Cordinate
Cordinate =
2 1 0
0 1 1
1 1 -2
1 0 -2
1 1 1
0 0 1
I want to locate points at the "Cordinate" given above in 3D. How to do that in Matlab?
I want to show a star mark of the point located in x y z

답변 (2개)

Friedrich
Friedrich 2011년 8월 10일
Hi,
try plot3:
plot3(Cordinate(:,1),Cordinate(:,2),Cordinate(:,3),'*')

Walter Roberson
Walter Roberson 2011년 8월 10일
scatter3() is probably the most appropriate command.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by