polysplit
Convert line or polygon parts from vector form to cell arrays
Syntax
[latcells,loncells] = polysplit(lat,lon)
Description
[latcells,loncells] = polysplit(lat,lon)
returns
the NaN
-delimited segments of the vectors lat
and lon
as
N-by-1 cell arrays with one polygon segment per cell. lat
and lon
must
be the same size and have identically-placed NaN
s.
The polygon segments are column vectors if lat
and lon
are
column vectors, and row vectors otherwise.
Examples
Version History
Introduced before R2006a