How to perform interpolation using inverse of the square of distance
2 ビュー (過去 30 日間)
古いコメントを表示
Please can someone assist with how to interpolate using the inverse of the square of the distance from points of known values to the point of value you wish to interpolate for?
I am trying to get the pressure at the vertex points of my triangulation by interpolating the pressure at the neighboring control volume midpoints using the inverse of the square of the distance between the center of the neighboring control volume and the vertex.
0 件のコメント
回答 (1 件)
Walter Roberson
2015 年 10 月 24 日
You might want to use something like pdist to get the pairwise distances between your target points and the control points; then square those, take reciprocal, multiply by the pressures at those points (this part is a guess), sum the result.
4 件のコメント
Walter Roberson
2015 年 10 月 24 日
But the physical processes involved are scale-invariant, so you should be able to multiply them by an arbitrary scale factor. In particular you should be able to substitute Euclidean distance based upon indices (provided that your x and y scales are the same.)
参考
カテゴリ
Help Center および File Exchange で Interpolation of 2-D Selections in 3-D Grids についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!