Hi Suji,
You may take the help of curve fitting approach to determine z = f(x,y). This will give you an approximation of the function. Here is the documentation link that you may find useful, https://in.mathworks.com/help/curvefit/fit.html
Thanks,
Sujit