FILLNANS

Version 1.0.0.0 (2,27 ko) par Ian Howat
FILLNANS replaces all NaNs in array using inverse-distance weighting between non-NaN values.
4,1K téléchargements
Mise à jour 18 juil. 2007

Afficher la licence

FILLNANS replaces all NaNs in array using inverse-distance weighting.
Y = FILLNANS(X) replaces all NaNs in the vector or array X by inverse-distance weighted interpolation:
Y = sum(X/D^3)/sum(1/D^3)
where D is the distance (in pixels) from the NaN node to all non-NaN values X. Values farther from a known non-NaN value will tend toward the average of all the values.

Y = FILLNANS(...,'power',p) uses a power of p in the weighting function. The higher the value of p, the stronger the weighting.

Y = FILLNANS(...,'radius',d) only used pixels < d pixels away for weighted averaging.

NOTE: Use in conjunction with INVDISTGRID to grid and interpolate x,y,z data.

See also INPAINT_NANS

Citation pour cette source

Ian Howat (2026). FILLNANS (https://fr.mathworks.com/matlabcentral/fileexchange/15590-fillnans), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2006a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Sparse Matrices dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.0.0.0

Adopted several code efficiency revisions made by Urs, including removing the waitbar.