Mapping Toolbox    
mat2dms

Convert distinct matrix elements to dms format

Syntax

Description

anglout = mat2dms(d,m,s) takes angles separated into three inputs, one each for degrees, minutes, and seconds, and converts them to single dms values.

anglout = mat2dms(d,m,s,n) specifies the power of 10, n, to which the input seconds should be rounded before they are converted (i.e., if a result is 12.567 seconds, and n = -2, the resulting seconds output would be 12.57). The default value of n is -2.

anglout = mat2dms([d,m,s],n) allows the inputs to be packed into a three-column matrix in which the columns represent degrees, minutes, and seconds, respectively.

Examples

See Also
dms2mat
Convert from dms to separated matrices


  maskm mat2hms