how to change values within an array to NaN
26 views (last 30 days)
Harald von der Osten on 18 Jan 2021
loading xyz-data into Matlab and interpolate that scattered data like this:
x=f56(:,1); y=f56(:,2); z=f56(:,3);
gives me 1950 values in x and 4000 in y.
Because of a region of bad data I would like to set that region to NaN for further processing. How can I set 1280 <= x <= 1950 and 3025 <= y <= 4000 to NaN ?
Thanks a lot.