Packing Circles inside a Circle

조회 수: 9 (최근 30일)
Andriy Solonyna
Andriy Solonyna 2014년 5월 12일
편집: Walter Roberson 2014년 5월 13일
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
Image Analyst
Image Analyst 2014년 5월 12일
The comments in that code say it already does what you want. Why do you need to change anything?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by