An open API service indexing awesome lists of open source software.

https://github.com/DanGolding/Linear-and-bilinear-interpolation-in-Excel

VBA code of worksheet functions for linear and bilinear interpolation based on interp1 and interp2 in MATLAB
https://github.com/DanGolding/Linear-and-bilinear-interpolation-in-Excel

Last synced: 4 months ago
JSON representation

VBA code of worksheet functions for linear and bilinear interpolation based on interp1 and interp2 in MATLAB

Awesome Lists containing this project

README

        

# Linear-and-bilinear-interpolation-in-Excel
VBA code of worksheet functions for linear and bilinear interpolation based on the signature of [`interp1`](http://uk.mathworks.com/help/matlab/ref/interp1.html) and [`interp2`](http://uk.mathworks.com/help/matlab/ref/interp2.html) in MATLAB.

The code is in [Interpolation.bas](https://github.com/DanGolding/Linear-and-bilinear-interpolation-in-Excel/blob/master/Interpolation.bas) and an [example spreadheet](https://github.com/DanGolding/Linear-and-bilinear-interpolation-in-Excel/blob/master/Interpolation%20example.xlsm) is also provided.

### Linear Interpolation
Example of using the `interp1` function:



### Bilinear Interpolation
Example of using the `interp2` function:



note for `inrerp2`, the first arguemnt, `xAxis`, must be a _vertical_ range, and the second argument, `yAxis`, must be a _horizontal_ range.