필터 지우기
필터 지우기

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
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 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