Main Content

trimdata

Trim map data exceeding projection limits

Syntax

[ymat,xmat,trimpts] = trimdata(ymat,ylim,xmat,xlim,object)

Description

[ymat,xmat,trimpts] = trimdata(ymat,ylim,xmat,xlim,object) identifies points in map data that exceed projection limits. The projection limits are defined by the lower and upper inputs. The particular object to be trimmed is identified by the object input.

Allowable objects are

  • 'surface' for trimming graticules

  • 'light' for trimming lights,

  • 'line' for trimming lines

  • 'patch' for trimming patches

  • 'text' for trimming text object location points

  • 'none' to skip all trimming operations

Version History

Introduced before R2006a