how can i plot a circle using plot function?
古いコメントを表示
i
1 件のコメント
Pushpa Neupane
2023 年 1 月 31 日
This code is showing some error. can you please upload the corrected one.
回答 (1 件)
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
カテゴリ
ヘルプ センター および File Exchange で 2-D and 3-D Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!