How to create a 3D-plot?

8 visualizaciones (últimos 30 días)
Katjab
Katjab el 25 de Abr. de 2018
Editada: Katjab el 25 de Abr. de 2018
Hi, I have 6 coordinates which i want to visualize in a plot. 5 of them (v1-5) should be blue dots and 1(v6) a red star the size should be relatively big for a good view. I already got: v1=[1,1,1]; v2=[2,2,2]; v3=[1,2,3]; v4=[3,2,4]; v5=[4,4,4]; v6=[0.5,0.5,0.5]; v=[v5;v4;v3;v2;v1]; figure(1); scatter3(v(:,1),v(:,s),v(:,3),10);
  1 comentario
KALYAN ACHARJYA
KALYAN ACHARJYA el 25 de Abr. de 2018
I have edited my Answer, check.

Iniciar sesión para comentar.

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 25 de Abr. de 2018
Editada: KALYAN ACHARJYA el 25 de Abr. de 2018
v1=[1,1,1];
v2=[2,2,2];
v3=[1,2,3];
v4=[3,2,4];
v5=[4,4,4];
v6=[0.5,0.5,0.5];
v=[v5;v4;v3;v2;v1];
figure(1); scatter3(v(:,1),v(:,2),v(:,3),10);
hold on;
v_r=[v6];
figure(1); scatter3(v_r(:,1),v_r(:,2),v_r(:,3),30,'filled');
hold off;
  2 comentarios
KALYAN ACHARJYA
KALYAN ACHARJYA el 25 de Abr. de 2018
Is it OK?
Katjab
Katjab el 25 de Abr. de 2018
Editada: Katjab el 25 de Abr. de 2018
It's working... many thanks!!!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Scatter Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by