Inverse Distance Weight
The code performs an Inverse distance weighting (IDW) multivariate interpolation, i.e. a process of assigning values to unknown points by using values from usually scattered set of known points.
The code requires vectors of coordinates and variable values of known points (xc,yc,vc) and calculated the variable values by means of Inverse Distance Weighting (IDW) multivariate interpolation for a vector or matrix (Vint) of unknown points described by coordinates (x,y). The code allows to vary the distance weight (e) and to consider a certain number of neighbors through fixed radius or number of neighbours methods.
Cite As
Simone Fatichi (2025). Inverse Distance Weight (https://uk.mathworks.com/matlabcentral/fileexchange/24477-inverse-distance-weight), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired: IDW-Based Spatiotemporal Interpolation, Inverse Distance Weighted (IDW) or Simple Moving Average (SMA) INTERPOLATION
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.3.0.0 | A bug in the fixed radius option has been fixed. The number of neighbours option was always correct. Note that the code requires that the coordinates of the known points must not overlap with the coordinates of the unknown points. |
||
| 1.2.0.0 | Changes in the code comments |
||
| 1.0.0.0 |
