InterpMatrixValue(XRange,YRange,Matrix,XValue,YValue,[InterpMethod])

Two-dimensional interpolation from {XRange,YRange,Matrix} to (XValue,YValue). InterpMethod is a code specifying the interpolation method. The following values are supported: 1, row-dominated interpolation; 2, column-dominated interpolation; 3, the mean of row and column-dominated interpolation; 5, bilinear interpolation. If not specified InterpMethod defaults to 1.

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  
               

InterpMethod=1
                 
  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 2 2 3 3.5 4 4 4  
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  
                 

InterpMethod=2
                 
  1 2 3 3.5 4 5 6  
1 2 2 3 3 4 4 4  
2 2 2 3 3 4 4 4  
2.5 3.5 3.5 4 4 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 10 10 10  
6 8 8 9 9 10 10 10  
                 

InterpMethod=3
                 
  1 2 3 3.5 4 5 6  
1 2 2 3 3.25 4 4 4  
2 2 2 3 3.25 4 4 4  
2.5 2.75 2.75 3.5 3.75 4.25 4.25 4.25  
3 5 5 5 5 5 5 5  
4 6 6 6 6 6 6 6  
5 8 8 9 9.25 10 10 10  
6 8 8 9 9.25 10 10 10  
                 

InterpMethod=5
                 
  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