Circles with particular radius for latitude and longitude points plotted on map
조회 수: 4 (최근 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?
댓글 수: 0
채택된 답변
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
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 Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!