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

 採用された回答

Matt J
Matt J 2020 年 3 月 19 日
編集済み: Matt J 2020 年 3 月 19 日

1 投票

theta=linspace(0,360,n+1); theta(end)=[];
x=R*cosd(theta)+x0;
y=R*sind(theta)+y0;

2 件のコメント

Massimo Fumarola
Massimo Fumarola 2020 年 3 月 19 日
And how do i plot them?
Matt J
Matt J 2020 年 3 月 19 日
plot(x,y,'*')

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

質問済み:

2020 年 3 月 19 日

コメント済み:

2020 年 3 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by