Error in converting Decimals from Degree Minutes Seconds

1 次查看(过去 30 天)
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 ?

采纳的回答

Walter Roberson
Walter Roberson 2016-4-2
dms2degrees([dms(:,1), floor(dms(:,2)), mod(dms(:,2),1)*60])

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Marine and Underwater Vehicles 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by