I have a 3-column matrix of data (A), where columns 1 and 2 are lats and longs, and column 3 is temperature.
I also have a 2-column matrix (B) of lats and longs.
I want to look up the lats and longs provided in matrix B in matrix A, and return the corresponding temperature value.
The lats and longs in B won't exactly match those in A, so I need the temperature value from the coordinates that are closest.
Any help would be appreciated.
Best Answer