: mp = isShapeMultipart (x, y)

Checks if a polygon or polyline consists of multiple parts separated by NaN rows.

x and y must be vectors with the same orientation (either row vectors of column vectors).

Output argument mp is zero (false) if the shape contains no NaN rows, otherwise it equals the number of polygon/polyline shape parts.

See also: .

Package: mapping