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. (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 Comments

Can you explain what you mean by "the figure I got does not make sense"? Alternatively, can you provide the figure you got?
I have edited the question by attaching the figure I got and how I plotted the points. I expecting to get a polyhedral structure.
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.

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Tags

Asked:

on 22 May 2017

Commented:

Jan
on 23 May 2017

Community Treasure Hunt

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

Start Hunting!