필터 지우기
필터 지우기

How to perform interpolation using inverse of the square of distance

조회 수: 2 (최근 30일)
Mark
Mark 2015년 10월 24일
댓글: Walter Roberson 2015년 10월 24일
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.

답변 (1개)

Walter Roberson
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
Mark
Mark 2015년 10월 24일
Yes I guess so, but my entire domain is 1mX1m so distances are well less than 1 which makes squaring it lower and so increases the result of A/4 and B/4.
Walter Roberson
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 CenterFile 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!

Translated by