MatrixInterp(YValue,XValue,Matrix)

Interpolates from a matrix to (XValue,YValue) using the bilinear method. The first row of Matrix specifies the YRange values. The first column of Matrix specifies the XRange values.

Matrix
               
  1 2 3 4 5 6  
1 2 2 3 4 4 4  
2 2 2 3 4 4 4  
3 5 5 5 5 5 5  
4 6 6 6 6 6 6  
5 8 8 9 10 10 10  
6 8 8 9 10 10 10  
               

MatrixInterp
                 
  1 2 3 3.5 4 5 6  
1 2 2 3 3.5 4 4 4  
2 2 2 3 3.5 4 4 4  
2.5 3.5 3.5 4 4.25 4.5 4.5 4.5  
3 5 5 5 5 5 5 5  
4 6 6 6 6 6 6 6  
5 8 8 9 9.5 10 10 10  
6 8 8 9 9.5 10 10 10