project.email
Member level 4
hi
Dear friends
How can I draw this 3D digram in Matlab please help me.
Dear friends
How can I draw this 3D digram in Matlab please help me.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Phi=(0:1:180)*2*pi/180;
Theta=(0:1:180)*2*pi/180;
[THETA,PHI]=meshgrid(Theta,Phi);
R=sqrt(1-(sin(THETA)^2.*sin(PHI)^2)).*(sin(pi.*cos(THETA)));
X=R.*sin(THETA).*cos(PHI);
Y=R.*sin(THETA).*sin(PHI);
Z=R.*cos(THETA);
figure();
mesh(X,Y,Z); %display
surf(X,Y,Z) %colored faces