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!