interpm
Densify latitude-longitude sampling in lines or polygons
Syntax
[latout,lonout] = interpm(lat,lon,maxdiff)
[latout,lonout] = interpm(lat,lon,maxdiff,method)
[latout,lonout] = interpm(lat,lon,maxdiff,method,units)
Description
[latout,lonout] = interpm(lat,lon,maxdiff)
fills
in any gaps in latitude (lat
) or longitude (lon
)
data vectors that are greater than a defined tolerance maxdiff
apart
in either dimension. The angle units of the three inputs need not
be specified, but they must be identical. latout
and lonout
are
the new latitude and longitude data vectors, in which any gaps larger
than maxdiff
in the original vectors have been
filled with additional points. The default method of interpolation
used by interpm
is linear.
[latout,lonout] = interpm(lat,lon,maxdiff,method)
interpolates between vector data coordinate points using a specified interpolation
method
. Valid interpolation methods are 'gc'
for great circle, 'rh'
for rhumb line, and 'lin'
for linear interpolation.
[latout,lonout] = interpm(lat,lon,maxdiff,method,units)
specifies the units used, where units
is any valid angle unit. The
default is 'degrees'
.
Examples
Version History
Introduced before R2006a