I am trying to plot a surface. What I need is the surface that is on top, but I keep getting the two surfaces underneath. Is there any reason why this is happening?
BB = [TBfunc1;TBfunc2]
X = [BB(:,1)]
Y = [BB(:,3)]
Z = [BB(:,2)]
[xi, yi] = meshgrid(X,Y);
F = scatteredInterpolant(X,Y,Z)
zi = F(xi,yi)
surf(xi,yi,zi, 'EdgeAlpha', 0)