Example Code

3D Polynomial-Fit and Interpolation

Code and Documents

Attachment

This example shows how to do a polynomial fit with three dimensional data. You can select the order and calculate the polynomial coefficients. Then using the calculated polynomial coefficients and two known parameters, LabVIEW interpolates the third unknown parameter.
The main VI is Using3DPolyFitandEvaluation. Click the Calculate Coefficients button to call the 3Dpolynomialfit VI and calculate the polynomial coefficients based on the 3D input data arrays (x,y,z) and the desired order. Then, click the Interpolate button to call the 3Dpolynomialevaluation VI and find an unknown z based on a known x and y, as well as the calculated polynomial coefficients.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors