MATLAB: Smooth surface from scatter 3 plot

scatter3smooth surface

I have location data say L of ( X, Y, Z) of size (673266 X 3) and values at these locations estimated through statistical kriging say A(673266X1), I have plotted using scatter 3 plot as shown here. But I need to have a smooth surface like shown in the second figure. How to do that. Kindly help. I have tried surf, it does not work due to the difference in dimensions between L and A. Since I have used kriging for estimating the values, is it possible to get the smooth surface by not using any other interpolation method as it may lead to wrong results. Thanks in advance.
.

Best Answer

Read about griddata. You can provide your required (X,Y) and interpolate Z values on it. Also have a look on slice.