Im having trouble plotting 3D data using surfc/meshc function. Im not able to adjust the gap between contour and surface graph. Im using the following code
xyz=[1.7 3.52 2.0 8.0 -150.5 -149.85]; f=load('adia_chpd.dat'); x=f(:,1); y=f(:,2); z1=f(:,3); xlin=linspace(min(x),max(x),60); ylin=linspace(min(y),max(y),60); [X,Y]=meshgrid(xlin,ylin); Z1=griddata(x,y,z1,X,Y,'linear'); %contour(X,Y,Z1,20,'LineWidth',2); C=gradient(Z1); %meshc(X,Y,Z1,C); surfc(X,Y,Z1,C,'FaceColor','none','EdgeColor','red'); axis(xyz) ylabel('$\mathbf{R(a_\circ)}$','Interpreter','latex','FontSize',15,'FontWeight','bold','VerticalAlignment','middle') xlabel('$\mathbf{r(a_\circ)}$','Interpreter','latex','FontSize',15,'FontWeight','bold','VerticalAlignment','bottom') set(gca,'FontSize',15,'LineWidth',2.0)
It gave me the following output
I want to get a plot that look like the following
How can I do that? Pls help