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

 Réponse acceptée

Matt J
Matt J le 19 Mar 2020
Modifié(e) : Matt J le 19 Mar 2020
theta=linspace(0,360,n+1); theta(end)=[];
x=R*cosd(theta)+x0;
y=R*sind(theta)+y0;

2 commentaires

Massimo Fumarola
Massimo Fumarola le 19 Mar 2020
And how do i plot them?
plot(x,y,'*')

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by