plot 3D surface for this function: X=F(phi,beta,rho) Y=F(phi,beta,rho) Z=F(phi,beta,rho)
Mostrar comentarios más antiguos
Could you tell me how I can plot 3D surface for this function:
phi1=-pi/2:0.01*pi:pi/2;
phi2=-pi/2:0.01*pi:pi/2;
phi3=-pi/2:0.01*pi:pi/2;
X=0.4*cos(phi1)*sin(phi3)+0.4*sin(phi1)*cos(phi3)+0.35*sin(phi1);
Y=sin(phi3)+0.4*sin(phi1);
Z=0.2*cos(phi1)*sin(phi3)-0.4*cos(phi1)*cos(phi3)+0.35*cos(phi1);
so, how can i plot X Y Z in 3d axis
Respuestas (1)
Azzi Abdelmalek
el 3 de Jul. de 2015
Editada: Azzi Abdelmalek
el 3 de Jul. de 2015
phi1=-pi/2:0.01*pi:pi/2;
phi2=-pi/2:0.01*pi:pi/2;
phi3=-pi/2:0.01*pi:pi/2;
X=0.4*cos(phi1).*sin(phi3)+0.4*sin(phi1).*cos(phi3)+0.35*sin(phi1);
Y=sin(phi3)+0.4*sin(phi1);
Z=0.2*cos(phi1).*sin(phi3)-0.4*cos(phi1).*cos(phi3)+0.35*cos(phi1);
plot3(X,Y,Z)
1 comentario
Tuyen
el 3 de Jul. de 2015
Editada: Azzi Abdelmalek
el 3 de Jul. de 2015
Categorías
Más información sobre Line Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
