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

6 次查看(过去 30 天)
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 个评论
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 CenterFile Exchange 中查找有关 2-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