how can i plot a circle using plot function?

i

1 件のコメント

Pushpa Neupane
Pushpa Neupane 2023 年 1 月 31 日
This code is showing some error. can you please upload the corrected one.

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

回答 (1 件)

Massimo Zanetti
Massimo Zanetti 2016 年 10 月 5 日

4 投票

Look here
r = 2; %radius
xc = 4; %x center
yc = 3; %y center
theta = linspace(0,2*pi);
x = r*cos(theta) + xc;
y = r*sin(theta) + yc;
plot(x,y)
axis equal

カテゴリ

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

タグ

質問済み:

2016 年 10 月 5 日

コメント済み:

2023 年 1 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by