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 vue (au cours des 30 derniers jours)
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 commentaires
PASCHAL NYIAM
PASCHAL NYIAM le 23 Mai 2017
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 le 23 Mai 2017
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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Graphics Objects dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by