: string = angl2str (angles, sign_notation, unit, n)

Convert angles to notation as angles represents latitudes or longitudes. Unless specified in unit, the angle is expected to be in degrees. The resulted string is intended to show angles in map.

The sign_notation specifies how the positive/negative sign is shown. The possibles values are "ew" (east/west), "ns" (north/south), "pm" (plus/minus) or "none". Default value is "none".

The possible unit values are "radians", "degrees", "degrees2dm" or "degrees2dms". "dms" stands for degrees minutes and seconds.

The parameter n indicates how many digits will have the last angle part.

Octave uses ° for degrees, Matlab uses ^{\circ} latex output.

See also: str2angle.

Package: mapping