v = fillgaps(v, imeth, extrapol )
Gaps within a vector are NaN data. Data gaps inside the elements of the vector are filled using interpolation function interp1, and the method specified by imeth. If extrapolation is required, then gaps at the beginning and end of the vector are filled with the nearest non-NaN value.
Data vector.
Interpolation method,as those used for interp1. If zero,then default method linear is used.
Data vector with gaps filled.
Pierre Jaccard, Geophysical Institute, University of Bergen, 1999