This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Clip data at +/-pi in longitude, +/-pi in latitude


[lat,long,splitpts] = clipdata(lat,long,'object')


[lat,long,splitpts] = clipdata(lat,long,'object') inserts NaNs at the appropriate locations in a map object so that a displayed map is clipped at the appropriate edges. It assumes that the clipping occurs at +/- pi/2 radians in the latitude (y) direction and +/- pi radians in the longitude (x) direction.

The input data must be in radians and properly transformed for the particular aspect and origin so that it fits in the specified clipping range.

The output data is in radians, with NaNs placed at the proper locations. The output variable splitpts returns the row and column indices of the clipped elements (columns 1 and 2 respectively). These indices are necessary to restore the original data if the map parameters or projection are ever changed.

The 'object' parameter can have any of the following values:

Object to clipDescription
texttext object location points
pointpoint data
noneskip all clipping operations

Introduced before R2006a

Was this topic helpful?