Plot parametric surface for this function: X=F(phi,beta,rho) Y=F(phi,beta,rho) Z=F(phi,beta,rho) over specific range -pi<phi<pi, -pi<beta<pi, -pi<rho<pi
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
This is my problem
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).*cos(phi2)+0.35*sin(phi1).*cos(phi2);
Y=0.35*sin(phi2)+0.4*sin(phi2).*cos(phi3);
Z=0.4*cos(phi1).*sin(phi3)-0.4*cos(phi1).*cos(phi2).*cos(phi3)+0.35*cos(phi1).*cos(phi2);
I need
phi1 running from -pi/2 to pi/2 while phi2=const, phi3=const.
Consequentially, phi2 running while phi1=const, phi3=const...
And phi3 running while phi1=const, phi2=const It look like this example
syms s t
r = 2 + sin(7*s + 5*t);
x = r*cos(s)*sin(t);
y = r*sin(s)*sin(t);
z = r*cos(t);
ezsurf(x, y, z, [0, 2*pi, 0, pi])
However, it just support for 2 variables (s, t) only.
I need the function for 3 variables as my problem
0 commentaires
Réponses (1)
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!