circle with circles! How can I do that?? please HELP!
Afficher commentaires plus anciens
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?
Réponses (3)
the cyclist
le 29 Mai 2012
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
le 29 Mai 2012
1 vote
Walter Roberson
le 29 Mai 2012
0 votes
See also input() and inputdlg()
Catégories
En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!