SPLITPOLYGONS Convert a NaN separated polygon list to a cell array of polygons.

   POLYGONS = splitPolygons(POLYGON);
   POLYGON is a N-by-2 array of points, possibly with pairs of NaN values.
   The functions separates each component separated by NaN values, and
   returns a cell array of polygons.

   See also:
   polygons2d

Package: matgeom