Documentation

This is machine translation

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

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

wrapTo180

Wrap angle in degrees to [-180 180]

Syntax

lonWrapped = wrapTo180(lon)

Description

lonWrapped = wrapTo180(lon) wraps angles in lon, in degrees, to the interval [-180 180] such that 180 maps to 180 and -180 maps to -180. (In general, odd, positive multiples of 180 map to 180 and odd, negative multiples of 180 map to -180.)

Introduced in R2007b

Was this topic helpful?