fillgaps(3m)

NAME
fillgaps - Fill gaps within a vector

SYNOPSIS
v = fillgaps(v, imeth, extrapol )

DESCRIPTION
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.

PARAMETERS

v   Data vector.

imeth
    Interpolation method,as those used for interp1. If zero,then default method linear is used.

extrapol
    If non-zero then also extrapolate data at the vector extremities."

RETURNS

v   Data vector with gaps filled.

AUTHORS
Pierre Jaccard, Geophysical Institute, University of Bergen, 1999