interpolatesolution is giving NaN results

조회 수: 2 (최근 30일)
Khalid Ibne Masood
Khalid Ibne Masood 2020년 8월 4일
댓글: Ravi Kumar 2020년 8월 5일
Hello,
I am trying to solve a Laplace equation over a rectangular domain using the FEA tool in Matlab. The solution is okay, but I wanted to interpolate the result over a very dense regular grid using the command interpolateSolution. The problem is, interpolated result is showing NaN values evenif the point is inside the region. I have attached two figures here. The first one is for the PDE solution and there is no white spot. .
The second one is the interpolated value, and as it is seen easily there are white spot that correspond to the NaN values.
Why the interpolation is giving NaN values? How I can solve this issue?
Thank you.
Khalid
  댓글 수: 2
KSSV
KSSV 2020년 8월 4일
Image is not attached....What function did you try for interpolation? Read about fillmissing.
Ravi Kumar
Ravi Kumar 2020년 8월 5일
That seems odd, you should not get NaN if your points are within the goemetry. What version of MATLAB are you using. Also try if you get the same issue if you change the mesh order from linear to quadratic and vice versa. You might also try reducing the mesh density. If you can provide repro code that would help debug the issue.
Regards,
Ravi

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by