| Mapping Toolbox | ![]() |
Convert angle units from degrees to dms or dm format
Syntax
anglout = deg2dms(anglin) angleout = deg2dm(anglin)
Description
anglout = deg2dms(anglin) converts angles input in degrees to the equivalent measure in the degrees-minutes-seconds (dms) format.
angleout = deg2dm(anglin) converts angles input in degrees to the equivalent measure in the degrees-minutes (dm) format. This is the dms format, properly rounded to just degrees and minutes.
Example
deg2dms(23.561)
ans =
2333.40
deg2dm(23.561)
ans =
2334.00
See Also
angledim |
Convert angle units |
dms2mat |
Convert from dms to separated matrix components |
deg2rad dms2rad |
Other direct angle conversion functions |
mat2dms |
Convert from separated matrices input to dms |
| defaultm | deg2km, deg2nm, deg2sm | ![]() |