Create n equidistant point along a circle

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?
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 Centro de ayuda y File Exchange.

Productos

Preguntada:

el 19 de Mzo. de 2020

Comentada:

el 19 de Mzo. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by