Error in converting Decimals from Degree Minutes Seconds

5 visualizaciones (últimos 30 días)
Hello, I am facing problem in converting dms to dd, i have a matrix of 4x3 as shown below
i am using following command to convert in degree decimals,
angleInDegrees = dms2degrees(dms)
but i always got following error:
Need assistance ?

Respuesta aceptada

Walter Roberson
Walter Roberson el 2 de Abr. de 2016
dms2degrees([dms(:,1), floor(dms(:,2)), mod(dms(:,2),1)*60])

Más respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 2 de Abr. de 2016
v=[33 31.15 0] % 31.15 is not allowed by Matlab, it should be an integer
out=dms2degrees(fix([33 33.15 0]))

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by