Using linspace outside of field data areas?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Harald von der Osten
am 28 Jul. 2021
Bearbeitet: Walter Roberson
am 2 Aug. 2021
I have data like this one (data: irregular in xyz, no data in the white area):
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/697059/image.png)
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/697064/image.png)
Thanks a lot for each hint,
Harald
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 28 Jul. 2021
Use scatteredInterpolant() with the Extrapolation Method set to 'none'
8 Kommentare
Walter Roberson
am 1 Aug. 2021
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?
Harald von der Osten
am 2 Aug. 2021
Bearbeitet: Walter Roberson
am 2 Aug. 2021
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multirate Signal Processing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!