Well, what is your definition of a 2D polynominal? Do you have an actual model function for your data?
(e.g.: z = Ax + Bx^2 + Dy + Ey^2 + Fxy + G ...)
I don't think this is directly available in LabVIEW, but it would not be too difficult to adapt the "nonliner Lev-Mar Fit.vi" for this use. I use it for all kinds of much more complex functions that that.
😉In fact I did exactly the above described function last weekend and made a very simple demo using Lev-Mar subVIs that I modified from the stock versions a few years ago to allow fitting of arrays. In the case of arbitrary x-y data that is not on a regular grid, you would need to use extra connectors for the independent variables, etc.
(I have much more elaborate modified versions of
Lev-Mar for my own use, but the attached should be OK to show the principle.)
Enjoy!
Let me know if you have questions. There are probably a few minor errors in the code, but it seems to work just fine. Simply unzip the llb and run it (LabVIEW 7.1).