MATLAB: How to do interpolation

interpolationnan

Hi all,
I worked with the time series of the sea level data (non-tidal residual. thus, there is no periodicity in the time series. could you please help me to do interpolation because it contains some NaN values.
Thank you in advance.

Best Answer

A little more explanation of what you're trying to do is needed here. Are you trying to interpolate from scattered data to a regular grid? If so, your best option is probably to drop the NANs prior to interpolation. Or do you want to fill in some of the missing spots in an already-gridded dataset? Or something else?