Documentation Center    • Trials   • Product Updates
Manipulating Vector Geodata  Repackaging Vector Objects  It can
be difficult to identify line or patch segments once they have
been combined into large NaN-clipped vectors. You can separate
these polygon or line vectors into their component segments
using polysplit, which takes column vectors as inputs.
Extracting and Joining Polygons or Line Segments    1. Enter two
NaN-delimited arrays in the form of column vectors:      lat =
[45.6 -23.47 78 NaN 43.9 -67.14 90 -89]';     long = [13 -97.45
165 NaN 0 -114.2 -18 0]';   2. Use polysplit to create two cell
arrays, latc and lonc:      [latc,lonc] = polysplit(lat,long)
latc =          [3x1 double]    [4x1 double]     lonc =
[3x1 double]    [4x1 double]   3. Inspect the contents of the
cell arrays:      [latc{1} lonc{1}]     [latc{2} lonc{2}]
ans =                           45.6                        13
-23.47                    -97.45                             78