How can plot 1D manifold in 3d space
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, I have to plot a 1D manifold based on the equations below, x=[0,0.3], y=[0,1], z=[0,0.5]
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1040305/image.png)
other related equations are: ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1040310/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1040310/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1040315/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1040320/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1040325/image.png)
The 1D manifold in 3D space should be something like the red curve in the figure below:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1039740/image.jpeg)
For the convenience, the code of equations are:
g=(0:05).^4./z+(0:05).^4;
x=g;
p=0.255.*(z.^2./z.^2+(0.055).^2);
m1=0.15.^2./(p.^2+0.15.^2);
m2=z.^4./z.^4+0.1.^4;
m3=p.^2./p.^2+0.15.^2;
b=m2.*m3.*x;
a=m1.*(1-m2.*g);
f=1./1+0.4.*(1+a./b);
Thanks in advance for any help.
14 commentaires
Réponse acceptée
Torsten
le 21 Juin 2022
syms x y z
p=0.255*z.^2./(z.^2+(0.055)^2);
m1=0.15^2./(p.^2+0.15^2);
m2=z.^4./(z.^4+0.1^4);
m3=p.^2/(p.^2+0.15^2);
g = 0.05^4./(z+0.05^4);
a = m1.*(1-m2.*g);
b = m2.*m3.*x;
f = 1./(1+0.4*(1+a./b));
u = 0.18*f.*(5.5*y-6.5*z)-0.002*z.^2./(0.01+z.^2);
v = x - 0.05^4./(z+0.05^4) ;
u = subs(u,x,g);
Y = solve(u==0,y)
Y = matlabFunction(Y);
z = 0.1:0.1:1;
y = Y(z);
x = 0.05^4./(z+0.05^4);
plot3(x,y,z)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Historical Contests 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!