plot 3D surface for this function: X=F(phi,beta,rho) Y=F(phi,beta,rho) Z=F(phi,beta,rho)
Show older comments
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
Answers (1)
Azzi Abdelmalek
on 3 Jul 2015
Edited: Azzi Abdelmalek
on 3 Jul 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 Comment
Tuyen
on 3 Jul 2015
Edited: Azzi Abdelmalek
on 3 Jul 2015
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!