Representing a set of points on sphere

8 次查看(过去 30 天)
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 个评论
Vinita
Vinita 2012-7-24
Hi all please let me know if theres any problem in understanding my query

请先登录,再进行评论。

回答(1 个)

Vinita
Vinita 2012-7-24
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. ??

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by