Converts the given Value to degrees, minutes and seconds
[dms, dmsvec] = deg2dms(deg[, flag])
Scalar or vector [decimal degree]
set to 's' to return a formated string [degree°minutes'seconds''] , default='', optional
Scalar or vector of return values
[DD.MMSSss]
, or formated string or vector of
formated strings following the form
[DD°MM'SS.ss'']
Separated values [DD, MM, SS.ss]
Formates the given skalar or vector of values in decimal degrees to
the common form [DD,MMSSss]
. dms
can
optionaly be returned as formated string (flag='s')
"GG°MM'SS.ss"
. The additional return value
dmsvec
containes the separated values as line vector
[Degree, Minutes, Seconds.decimalseconds]
.
(matrix aware)
No warranty, there are no input checks