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
- Host: GitHub
- URL: https://github.com/DanGolding/Linear-and-bilinear-interpolation-in-Excel
- Owner: DanGolding
- Created: 2017-09-11T17:42:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-08-24T11:21:00.000Z (over 3 years ago)
- Last Synced: 2024-08-13T07:18:18.092Z (8 months ago)
- Language: VBA
- Size: 75.2 KB
- Stars: 21
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - DanGolding/Linear-and-bilinear-interpolation-in-Excel - VBA code of worksheet functions for linear and bilinear interpolation based on interp1 and interp2 in MATLAB (VBA)
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.