Rectangle packing function: Fit small rectangles in one big rectangle

14 views (last 30 days)
I am looking for a function/script to estimate the maximum number of smaller rectangles - or squares - that may fit into a larger rectangle or square.
The link below is an onlin algoritme that can doe it, as an expample:
https://www.engineeringtoolbox.com/smaller-rectangles-within-larger-rectangle-d_2111.html
  2 Comments
Dora de Jong
Dora de Jong on 31 Mar 2021
Thank you for the response. The Length and Width of the reactangle als input variables.
Larger rectangel A:
A_Width
A_Length
Small rectangels B (to fit in A): The size of the small reactangles are all the same.
B_Width
B_Length

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!