Borrar filtros
Borrar filtros

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

6 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

KSSV
KSSV el 15 de Oct. de 2018
Editada: KSSV el 15 de Oct. de 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 comentarios
Devendra Pandey
Devendra Pandey el 20 de Jul. de 2020
Hi KSSV,
What is rand and linspace in this code?
Kindly reply
KSSV
KSSV el 20 de Jul. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos


Versión

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by