5.0

5.0 | 1 rating Rate this file 20 Downloads (last 30 days) File Size: 1.69 KB File ID: #24477

Inverse Distance Weight

by Simone Fatichi

 

19 Jun 2009 (Updated 03 Oct 2009)

Inverse distance weighting (IDW) multivariate interpolation.

| Watch this File

File Information
Description

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.

Acknowledgements
This submission has inspired the following:
Inverse Distance Weighted (IDW) or Simple Moving Average (SMA) INTERPOLATION
MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
18 Jul 2011 liu  
05 Aug 2011 Michel

Bug 1:
D=D(D<r2); vcc=vc(D<r2);
should be
vcc=vc(D<r2);D=D(D<r2);

Bug 2:
Division by zero when a component in D is zero, and e is negative.

24 Oct 2011 Liyin

Are you sure about the code have bugs?

Please login to add a comment or rating.
Updates
03 Oct 2009

Changes in the code comments

Tag Activity for this File
Tag Applied By Date/Time
interpolation Simone Fatichi 19 Jun 2009 11:42:52
inverse distance weight Simone Fatichi 19 Jun 2009 11:42:52
gis Simone Fatichi 19 Jun 2009 11:42:52
spatial analysis Simone Fatichi 19 Jun 2009 11:42:52
earth science Simone Fatichi 19 Jun 2009 11:42:52
hydrology Simone Fatichi 19 Jun 2009 11:42:52

Contact us at files@mathworks.com