MATLAB: How to get the points of [lat, lon] of a full great circle

gcwayptsgreat circlelatitudelongitudemap

the matlab function gcwaypts generates points on the short arc of the great circle across two given points.
How to get the full great circle?

Best Answer

I would use a combination of azimuth, gc2sc, and scircle1:
az = azimuth(lat1, lon1, lat2, lon2)
[lat, lon, r] = gc2sc(lat1, lon1, az)
[latc, lonc] = scircle1(lat, lon, r)