Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#2 |
初级会员
注册日期: 2009-04-22
帖子: 3
声望力: 0 ![]() |
![]()
function plotcircle(n,center)
for i=1:n subplotcircle(i,center); hold on; end axis equal; function subplotcircle(r,center) t=linspace(-pi,pi,100);%%画100个点 x=cos(t)*r+center(1); y=sin(t)*r+center(2); plot(x,y) 画n个同心圆,以center为圆心 |
![]() |
![]() |