Mapping Toolbox    
maptriml

Trim line vector map to a specified region

Syntax

Description

[lat,lon] = maptriml(lat0,lon0,latlim,lonlim) returns filtered NaN-delimited vector map data sets from which all points lying outside the desired latitude and longitude limits have been discarded. These limits are specified by the two-element vectors latlim and lonlim, which are two-element vectors of the form [south-limit north-limit] and [west-limit east-limit], respectively.

Examples

A simple example:

Notice that trimmed line segment ends have NaNs inserted at trim points.

See Also
maptrimp
Trim patch map data to specified region
maptrims
Trim surface matrix map data to specified region


  maps maptrimp