points clusters in 3-D

Hi, there: I have 4000 points to be plotted around two centers with standard deviation 1 and mean 0. The center of the points must be P(x1,y1,z1) and Q(x2,y2,z2). Anybody have idea how to do this? Please help me. Thank you.
Regards' S.Giri

Respuestas (1)

Walter Roberson
Walter Roberson el 14 de Mayo de 2018

0 votos

cluster_P = bsxfun(@plus, [x1, y1, z1], randn(4000,3));
scatter3(cluster_P(:,1), cluster_P(:,2), cluster_P(:,3));
However, you need to clarify what it means to have standard deviation 1 and mean 0 when there are three dimensions to consider. Is the idea that the radius should be determined by randn() and that random angles should be taken?

3 comentarios

Subarna Giri
Subarna Giri el 14 de Mayo de 2018
The clusters must make 2 spheres at the given space coordinates as center for each cluster. I don't know how to define angle in 3-D.
Walter Roberson
Walter Roberson el 14 de Mayo de 2018
Are the two spheres to be of specific radius? Is the radius of the sphere to be determined randomly but after that the positions of the 4000 points should be equally distributed? Is each point's distance from its center to be set randomly?
What property of the points is to have standard deviation 1 and mean 0 ?
Subarna Giri
Subarna Giri el 14 de Mayo de 2018
The standard deviation determine the radius. Mean 0 tells that points distributed equally in positive and negative direction. No.of points in positive direction must be equal to points in negative directions. We can define radius but it must satisfy given conditions.

Iniciar sesión para comentar.

Productos

Etiquetas

Preguntada:

el 14 de Mayo de 2018

Comentada:

el 14 de Mayo de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by