How can I plot these set of points in 3D with matlab? I have tried using plot3 function, the figure I got does not make sense. Any help please?

1 回表示 (過去 30 日間)
1. (0, 82.35, 0),(116.67, 0, 0)
2. (0, 0, 125), (333.33, 0, 0), (0, 111.11, 0)
3. (175, 0, 0), (0, 134.61, 0), (0, 0, 116.67)
4. (0, 0, 82.81), (220.82, 0, 0)
5. (0, 75, 0), (0, 0, 128.57)
6. (113.16, 0, 0), (0, 113.16, 0), (0, 0, 268.75)
I tried plotting using the following:
x1=[0 116.66];
x2=[82.35 0];
x3=[0 0];
plot3(x3,x2,x1);
x1=[0 333.33 0];
x2=[0 0 111.11];
x3=[125 0 0];
plot3(x3,x2,x1);
hold on
x1=[175 0 0];
x2=[0 134.61 0];
x3=[0 0 116.66];
plot3(x3,x2,x1);
hold on
x1=[0 220.83];
x2=[0 0];
x3=[82.81 0];
plot3(x3,x2,x1);
hold on
x1=[0 0];
x2=[75 0];
x3=[0 128.57];
plot3(x3,x2,x1);
hold on
x1=[113.15 0 0];
x2=[0 113.15 0];
x3=[0 0 268.75];
plot3(x3,x2,x1);
hold on
grid on
And had the attached figure, but it does not make sense to me. It looks as if I plotted the points wrongly. Any help please.
  3 件のコメント
PASCHAL NYIAM
PASCHAL NYIAM 2017 年 5 月 23 日
I have edited the question by attaching the figure I got and how I plotted the points. I expecting to get a polyhedral structure.
Jan
Jan 2017 年 5 月 23 日
The shown code does exactly, what the commands define. Therefore the problem is, that you expect something else. We cannot guess, how you have obtained these expectations. But you could explain this and compare it to the actual code.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Objects についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by