Fill area between circles
Afficher commentaires plus anciens
Lets say I have 2 circles. They are concentric about the origin. What is the best way to fill the area between the 2? I am using this circle function that I found on Mathworks. The larger circle has a diameter of 10 and the smaller circle has a diameter of 5.
function circle(d,x,y,ang_start,ang_end,step)
ang=ang_start:step:ang_end;
xp=(d/2)*cos(ang);
yp=(d/2)*sin(ang);
plot(x+xp,y+yp);
end
Thanks,
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Polygons 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!
