Error in converting Decimals from Degree Minutes Seconds
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ahsan Abbas
le 2 Avr 2016
Commenté : Ahsan Abbas
le 2 Avr 2016
Hello, I am facing problem in converting dms to dd, i have a matrix of 4x3 as shown below
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159818/image.jpeg)
i am using following command to convert in degree decimals,
angleInDegrees = dms2degrees(dms)
but i always got following error:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159820/image.jpeg)
Need assistance ?
0 commentaires
Réponse acceptée
Plus de réponses (1)
Azzi Abdelmalek
le 2 Avr 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]))
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!