02-22-2011 06:24 PM
Hi,
I'm currently stuck on a problem where I have data from three variables, for our purposes, 'x,y,z' and would like to interpolate the z values into a 2D matrix for corresponding x and y values.
For example if I had the data:
x y z
1 2 3
2 3 5
3 4 7
My final 2D matrix should look like:
(y)
4| x x 7
3| x 5 x Where x are interpolated values.
2| 3 x x
_ _ _
(x) 1 2 3
Of course my matrix would be a lot larger than this simple 3x3 so most of the data would be interpolated (don't really need to extrapolate for my purposes).
Thanks for your help in advance!
Robbie
02-23-2011 01:06 PM
HI Robbie,
There is an Interpolate 2D Array VI within LabVIEW. Here is a link to a help document on it:
http://zone.ni.com/reference/en-XX/help/371361G-01/gmath/interpolate_2d/
Hope this helps!
-Cody C