circle with circles! How can I do that?? please HELP!
이전 댓글 표시
hello! I want to make a big circle that has smaller circles on its periphery. how can I do that for different number of small circle? I mean, how can we make a script that asks how many small circles we wan to put on the periphery of the big circle?
답변 (3개)
the cyclist
2012년 5월 29일
Use this function to get started:
function h = circle(x,y,r,nsegments)
if nargin<4
nsegments=50;
end
hold on
th = 0:2*pi/nsegments:2*pi;
xunit = r * cos(th) + x;
yunit = r * sin(th) + y;
h = plot(xunit, yunit);
hold off
end
Image Analyst
2012년 5월 29일
1 개 추천
Walter Roberson
2012년 5월 29일
0 개 추천
See also input() and inputdlg()
카테고리
도움말 센터 및 File Exchange에서 Polar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!