Potential bug using stdist with an ellipsoid?

4 vues (au cours des 30 derniers jours)
Chee Haw Chan
Chee Haw Chan le 23 Juin 2020
Modifié(e) : Chee Haw Chan le 23 Juin 2020
By definition, the standard distance should be 0 with only one set of lat/lon coordinates. This is true when I use referenceSphere('Earth') as the ellipsoid, but I get a nonzero answer when I use wgs84Ellipsoid instead. Is this the expected behavior, or is there a bug in stdist when it comes to ellipsoids? If this is the expected behavior, what is the explanation for returning a nonzero standard distance when there is only one set of coordinates?
Edit: Using Matlab R2017a
>> stdist(42.293684,-83.237701,referenceSphere('Earth'))
ans =
0
>> stdist(42.293684,-83.237701,wgs84Ellipsoid)
ans =
2.1261e+04

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by