フィルターのクリア

I want to create Circles of particular radius for latitude and longitude points plotted on map

1 回表示 (過去 30 日間)
Simran Sandhu
Simran Sandhu 2018 年 10 月 23 日
回答済み: Manju A B 2019 年 8 月 6 日
I am interested to create circle of different radius taking latitude and longitude as center, but I am not getting the circles on map. The code that am using is as given below:
lat = [21.1658, 21.1655, 21.16672, 21.16441, 21.15638, 21.17103, 21.17166, 21.14175, 21.17098, 21.17521,21.16423, 21.17525, 21.16205];
lon = [72.7939, 72.7937, 72.79333, 72.77744, 72.77798, 72.78658, 72.78956, 72.75316, 72.77758 ,72.80426, 72.79398, 72.78943, 72.75631];
plot(lon, lat, '.b', 'MarkerSize', 15);
grid on
plot_google_map('MapScale', 1)
R = 1 ; % radius of circle
C = [21.1658 72.7939]; % center of circle
th = linspace(0,2*pi) ;
x = C(1)+R*cos(th) ;
y = C(2)+R*sin(th) ;
plot(x,y);

回答 (1 件)

Manju A B
Manju A B 2019 年 8 月 6 日
Error in circlevirtual (line 5)
plot_google_map('MapScale', 1)

カテゴリ

Help Center および File ExchangeGeographic Plots についてさらに検索

製品


リリース

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by