MATLAB: Error with fillmissing function

fillmissingnanreplace nan

I got a set of data (I call it 'data')with a lot of NaN which is 3800*4610 table, the first column is ID and the last column is predict output.
fillmissing(data,'movmean',4610);
I try to fill NaN in each column with the mean in that column. However, the error shows:
Undefined function or variable 'fillmissing'.
I'm not sure what's worng with that

Best Answer

The fillmissing (link) function was introduced in R2016b.