Wraps X into the [0 to 360] interval.
x: angle(s) in degrees (single value, vector or ND matrix).
xwrap: output value(s) in the range [0 .. 360] degrees. The interval [0 .. 360] is a closed interval: values equal to zero or negative even multiples of 360 are mapped to 0, values equal to an even multiple of 360 are mapped to 360.
Example:
wrapTo360 ([-720, -360, 0; 10, 360, 720]) ans = 0 0 0 10 360 360
See also: wrapTo180, wrapToPi, wrapTo2Pi.
Package: mapping