INVDISTGRID

版本 1.0.0.0 (2.1 KB) 作者: Ian Howat
Simple, robust gridding using inverse-distance interpolation.
2.8K 次下载
更新时间 2007/7/19

查看许可证

INVDISTGRID Simple, robust gridding using inverse-distance interpolation.
[Xi,Yi,Zi] = invdistgrid[X,Y,Z,dx] Grids values in vector Z with coordinates X and Y into an array with spacing dx using inverse-distance weighting (default power =2). All data between grid points are used in weighting. If no data exists between points, a NaN is entered. X and Y must be vectors and Z must be of the same length. Z can be an m by n array, with each column a dataset, and Zi will be a three-dimensional array with n layers.

[Xi,Yi,Zi] = invdistgrid[X,Y,Z,dx,p] Replaces the default weighting power 2 with the integer p. The higher the value of p, the more weight will be given to closer data values.

NOTE: You can use FILLNANS or INPAINT_NANS to fill in the NaN values in Zi.

引用格式

Ian Howat (2024). INVDISTGRID (https://www.mathworks.com/matlabcentral/fileexchange/15538-invdistgrid), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2006a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Interpolating Gridded Data 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

Corrected some errors in the description.