Create n equidistant point along a circle

24 visualizaciones (últimos 30 días)
Massimo Fumarola
Massimo Fumarola el 19 de Mzo. de 2020
Comentada: Matt J el 19 de Mzo. de 2020
I'm trying to create a circle (given radius and center) and n=8 equidistant plotted point along the circumference;
If anyone has a sample code or can help me with this, thanks in advance

Respuesta aceptada

Matt J
Matt J el 19 de Mzo. de 2020
Editada: Matt J el 19 de Mzo. de 2020
theta=linspace(0,360,n+1); theta(end)=[];
x=R*cosd(theta)+x0;
y=R*sind(theta)+y0;
  2 comentarios
Massimo Fumarola
Massimo Fumarola el 19 de Mzo. de 2020
And how do i plot them?
Matt J
Matt J el 19 de Mzo. de 2020
plot(x,y,'*')

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

Community Treasure Hunt

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

Start Hunting!

Translated by