Main Content
dm2degrees
Convert degrees-minutes to degrees
Description
converts angles from degrees-minutes representation to values in degrees which may
include a fractional part (sometimes called “decimal degrees”). angleInDegrees
= dm2degrees(DM
)
Examples
Input Arguments
Output Arguments
Algorithms
For an input row with value [D M]
, with integer-valued
D
and real M
, the output value will be
SGN * (abs(D) + abs(M)/60)
SGN
is 1 if D
and M
are both nonnegative and -1 if the
first nonzero element of [D M]
is negative. An error results if a
nonzero D
is followed by a negative M
.Version History
Introduced in R2007a