Azzera filtri
Azzera filtri

Representing a set of points on sphere

7 visualizzazioni (ultimi 30 giorni)
Vinita
Vinita il 24 Lug 2012
Hi all,
I have V=(a,b,c,d,e,f) 6 vertices and from these i have a set of suppose 8 networks.Each of these networks are made of 4 vertices randomly selected from V. Now in each of the networks out of the 6 possible connections ( 2 diagonals and 4 on the rectangle) I have only only four connections( two diagonals and two on the rectangle) whereas the other 2 would be left unconnected. I need to represent these networks on a sphere. is there anyway this can be done. Please help. thanks a ton
  1 Commento
Vinita
Vinita il 24 Lug 2012
Hi all please let me know if theres any problem in understanding my query

Accedi per commentare.

Risposte (1)

Vinita
Vinita il 24 Lug 2012
Hi all , I have plotted the 3D sphere by this code :-
theta=linspace(0,2*pi,40);
phi=linspace(0,pi,40);
[theta,phi]=meshgrid(theta,phi);
rho=1;
x=rho*sin(phi).*cos(theta);
y=rho*sin(phi).*sin(theta);
z=rho*cos(phi);
mesh(x,y,z)
Now suppose i have to plot a quadrilateral (with four points given) on the surface of this sphere then how to do it. ??

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by