フィルターのクリア

Circles with particular radius for latitude and longitude points plotted on map

6 ビュー (過去 30 日間)
Simran Sandhu
Simran Sandhu 2018 年 10 月 15 日
コメント済み: KSSV 2020 年 7 月 20 日
I have few points with latitude and longitude on the map.
This is what I have now (see image below) and I am interested in creating circles with particular radius, how can I do that?

採用された回答

KSSV
KSSV 2018 年 10 月 15 日
編集済み: KSSV 2018 年 10 月 15 日
R = 1. ; % radius of circle
C = rand(2,1) ; % center of circle
th = linspace(0,2*pi) ;
x = C(1)+R*cos(th) ;
y = C(2)+R*sin(th) ;
plot(x,y) ;
  10 件のコメント
Devendra Pandey
Devendra Pandey 2020 年 7 月 20 日
Hi KSSV,
What is rand and linspace in this code?
Kindly reply
KSSV
KSSV 2020 年 7 月 20 日
rand generates random numbers. I wanted to choose center of circle, so I select a random point as center. Linspace generates values between givenn intervels with specified size. You can read them from MATLAB rich documentation.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by