MATLAB: How to extract the equation which describe a piecewise interpolation

2d3dcftoolinterpolationloren on the art of matlabpeicewise

Hello , I have a 3d data x , y and V ( see the attached fig ) I tried to interpolate by using fitting tool in matlab and it works very well by using peicewise cubic interpolation in cftool… what i need is to reproduce this surface f(x,y) which means i need to have the equation which describe this surface … is it possible to do it in matlab? So the function and is vital to complete my tasks.
Thanks for all of your help. Djing

Best Answer

That you think you "need" the function is not relevant. There is no simple function that you can write down for that interpolant, at least not without some reams of paper. Sorry.
If your goal is simply to reproduce the surface, that can be done. Just evaluate the interpolant at many points over a grid in the (x,y) plane, as created by the function meshgrid. Then evaluate the interpolant at each point in the grid. Plot using surf or mesh as you like.