Hi all,
I have a surface that is plotted based on the below code:
alpha0=delta.*(alph0)/ktau^4;
alpha1=delta.*(alph1)/ktau^4;
v_pm=delta.*(v_pmm)/ktau^4;
[c,ct]=meshgrid(0:0.01:10);
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));
[in,im] = meshgrid(1:n-1,1:m-1);
ind = sub2ind([m,n],im(:),in(:));
tri = [[ind,ind+1,ind+m];[ind+1,ind+m+1,ind+m]];
xyz=[ct(:),h(:),c(:).*0.04];
normals = cross(xyz(tri(:,2),:) - xyz(tri(:,1),:),xyz(tri(:,3),:) - xyz(tri(:,1),:));
direction = normals(:,3) >= 0;
H1 = trimesh(tri(direction,:),xyz(:,1),xyz(:,2),xyz(:,3));
I want to use different colors to highlight a specific area on the surface, as shown with the hatched part in the attached figure. The four boundary values that define this area are listed below and labeled in the figure:
1-(ct,h,c)=(0.359,0.1573,0.010831)
2-(ct,h,c)=(1.364,0.147,0.0407)
3-(ct,h,c)=(0.361,0.938,0.011138)
4-(ct,h,c)=(0.7,0.915,0.022367)
I tried to do it with fill3 but it just plot a line not a curve that exactly be on the surface. The two parallel curve in the attached figure are plotted by importing data.
I would be grateful for any help.