plot 3D surface for this function: X=F(phi,beta,rho) Y=F(phi,beta,rho) Z=F(phi,beta,rho)
Ältere Kommentare anzeigen
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
Antworten (1)
Azzi Abdelmalek
am 3 Jul. 2015
Bearbeitet: Azzi Abdelmalek
am 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 Kommentar
Tuyen
am 3 Jul. 2015
Bearbeitet: Azzi Abdelmalek
am 3 Jul. 2015
Kategorien
Mehr zu Line Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
