how can i plot a circle using plot function?
15 次查看(过去 30 天)
显示 更早的评论
i
1 个评论
回答(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!