Is matlab function distance is broken ?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Aymeric Ferreira
el 2 de Jun. de 2020
Comentada: Ameer Hamza
el 3 de Jun. de 2020
Hello,
I try to calculate the distance between two points on a sphere. It seems that the function distance is built-in https://www.mathworks.com/help/map/ref/distance.html
But I'm unable to make it work, even the examples in the doc seem to not work :
arclen = distance('gc',[37,-76],[37,-9])
arclen = distance('rh',[37,-76],[37,-9])
I always have this error :
Check for missing argument or incorrect argument data type in call to function 'distance'.
I even tried syntax like that :
[arclen,az] = distance('gc',[37,-76],[37,-9])
But nothing seems to work, why ? I'm using Matlab R2020a, is it deprecated ?
5 comentarios
Respuesta aceptada
Más respuestas (1)
Mark Brandon
el 2 de Jun. de 2020
It's your install.
Screen grab from those commands on my 2020a Update 2
un-install and clean install again?
good luck. MB
0 comentarios
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!