Using linspace outside of field data areas?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have data like this one (data: irregular in xyz, no data in the white area):
and would like to resample it using linspace. How can I force linspace to do this within the data range and set outside values to NaN? Otherwise the result will be like this one:
Thanks a lot for each hint,
Harald
댓글 수: 0
채택된 답변
Walter Roberson
2021년 7월 28일
Use scatteredInterpolant() with the Extrapolation Method set to 'none'
댓글 수: 8
Walter Roberson
2021년 8월 1일
Could you confirm that the data you use to plot the above is scattered?
And is it correct that you want to interpolate only within "connected" regions? So the "islands" should be done separately, and the "holes" are not to be filled? And the area that looks like it might be a wafer, the white gap should not be filled?
What about the small white areas around the black dots?
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!