how can i plot a circle using plot function?

20 ビュー (過去 30 日間)
Punyajoy saha
Punyajoy saha 2016 年 10 月 5 日
コメント済み: Pushpa Neupane 2023 年 1 月 31 日
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 日
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

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by