Circles with particular radius for latitude and longitude points plotted on map
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
KSSV
le 15 Oct 2018
Modifié(e) : KSSV
le 15 Oct 2018
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 commentaires
KSSV
le 20 Juil 2020
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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Line Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!