How can I visualize the intersection of two 3-D fields?
I have the following functions
1. a*b*c ∈ [3,5]
2. a/(b*c) ∈ [80,100]
where a,b,c ∈ [0,100].
I am looking for the intersection of those 2 3-D-fields/bodies?
I already found out how to visualize the reduced case (Intersection of 2 surfaces): 1.a*b*c=5 2. a/(b*c)=99
zlim = 1;
tol = 0.02; %define width of tube for proximity calculation
crop = @(z) max(min(z,zlim),-zlim); %limit domain
Cfun = @(x,y) crop(5./(x.*y)); % Apply domain limit to 'Cfun*x*y=5'
Dfun = @(x,y) crop(x./(99*y)); % Apply domain limit to 'x/(Dfun*y)=90'
t = 10:0.2:100;
[X,Y] = meshgrid(t,t);
C = Cfun(X,Y);
D = Dfun(X,Y);
S = NaN(size(C));
SI = abs(C-D) < tol*max(abs(C),abs(D)); % checks proximity of function values
S(SI) =max(C(SI),D(SI));
surf(X,Y,S,0.5*ones(size(S)),'EdgeColor','none','LineStyle','none','FaceLighting','phong');
%plot intersection line
I am glad for any piece of code or hint!