user6893
user6893

Reputation: 143

MATLAB - Interpolation in matrix of data

I currently have a 252x11 double matrix of data where each column is an individual time series. However, some of the data is missing and I would like to interpolate in order to fill in that data since I later need to use an algorithm that requires no blanks or NaNs. How would I go about doing this?

Upvotes: 0

Views: 166

Answers (1)

bla
bla

Reputation: 26069

You may consider using inpaint_nans which is designed to interpolate NaN elements in a 1-d or 2-d array using non-NaN elements. It can also extrapolate, as it does not use a triangulation of the data. It also allows different approaches to the interpolation.

Upvotes: 2

Related Questions