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!