Packing Circles inside a Circle

10 views (last 30 days)
Andriy Solonyna
Andriy Solonyna on 12 May 2014
Edited: Walter Roberson on 13 May 2014
Given unit circle, and a set of M smaller circles of radius r. Find the maximum radius of the smaller circles that allows them all to fit inside the unit circle without overlap.
I want to change equations that say that all circles are inside the polygon
theta = 2*pi/N; % Angle covered by each side of the polygon
phi = theta*(0:N-1)'; % Direction of the normal to the side of the polygon
polyEq = ( [cos(phi) sin(phi)]*x <= cdist-r );
to equations that say that all circles are inside the circle, but i don't know how. Can somebody help me?
Kind regards.
  1 Comment
Image Analyst
Image Analyst on 12 May 2014
The comments in that code say it already does what you want. Why do you need to change anything?

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!