how can i plot a circle using plot function?
20 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!