www.gusucode.com > map 案例源码 matlab代码程序 > map/PlotLocusOfPointsEquidistantFromNewDelhiExample.m
%% Plot Locus of Points Equidistant from New Delhi % %% % Plot the locus of all points the same distance from New Delhi as % Kathmandu. axesm('mercator','MapLatlimit',[0 40],'MapLonLimit',[60 110]); load coastlines % For reference plotm(coastlat,coastlon,'k'); % New Delhi lat1 = 29; lon1 = 77.5; % Kathmandu lat2 = 27.6; lon2 = 85.5; % Plot the cities plotm([lat1 lat2],[lon1 lon2],'b*') [latc,lonc] = scircle2(lat1,lon1,lat2,lon2); plotm(latc,lonc,'b')