I have a 2d array (doubles
) representing some data, and it has a bunch of NaNs
in it. The contour plot of the data looks like this:
nanfilter does exactly the same thing with nanconv when filtering as long as the filter is the same. If you get the nan values before you use nanfilter and then add the back to the after-filtered matrix, you will get the same result with what you get from nanconv with the option 'nanout', as long as you use the same filter.