finding fold curve in 3D surface
Show older comments
Hi all,
I have a 3D surface. Could you please tell me how can I plot the fold curve for it and coulour differently upper and bottom sheet?
here is the code for plotting the surface with its picture.
Thanks in advance for any help.
clear all
vplc=0.15;
delta=0.1;
Ktau=0.045;
Kc=0.1;
e=0.002;
K=0.000015/e
Kp=0.15;
gamma=5.5;
kb=0.4;
Vs=0.002;
vss=Vs./(e).^(1/2)
v_pm=delta.*0.000159/(e);
alpha0=delta*6.81e-6/(e);;
alpha1=delta*2.27e-5/(e)
Ke=7;
ks=0.1;
Kf=0.18;
kplc=0.055;
ki=2;
[C,ct]=meshgrid(0:0.001:2);
c=C;
p=(vplc./ki).*(e.^(1/2).*c.^2./((kplc).^2+e.^(1/2).*c.^2));
A=(-(vss.*c.^2)./(ks.^2))+((Vs.*K.*gamma.^2.*ct.^2)./(ks.^2))+alpha0+alpha1.*((Ke.^4)./(Ke.^4+(gamma.*ct).^4));
h=-0.4.*A.*((Kc.^4).*(Kp.^2))./((p.^2.*c.^4.*gamma.*ct.*Kf));
s=surf(ct,h,c);
s.EdgeColor = 'none';
s.FaceLighting = 'gouraud';
s.FaceAlpha=0.5;
xlabel('ct')
ylabel('h')
zlabel('c')
xlim([0 1.25])
ylim([0.2 1])
zlim([0 0.3])

Accepted Answer
More Answers (0)
Categories
Find more on Surface and Mesh 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!