Rectangles in a circle

This is a function to locate the center points of rectangles that completely fit inside a circle.
81 téléchargements
Mise à jour 8 jan. 2017

Afficher la licence

The function that is presented here can locate the center points of all the rectangles that completely fit inside a circle. It can be used in industries where, for instance, they need to automate a process of taking photos from microchips mounted on a wafer. This function provides the coordinate locations for the desired microchips which can be sent to a linear stage as points of interest.
The inputs of the function are:
• Diameter of the circle (diameter)
• Width of the rectangle (chip_width)
• Height of the rectangle (chip_height)
• Offset in X direction (chip_cntr_x_offset)
• Offset in Y direction (chip_cntr_y_offset)
The values for the offsets are usually zero if the dimensions of the rectangle are even number. In the case of odd values for rectangle dimensions, experience suggests that these offset values are half the width and height accordingly.
The output of the function is a matrix with certain number of rows (corresponding to the number of rectangles that fit inside the circle) and three columns. The first column is a sequential number whereas the second and third columns are X and Y coordinate of the points, respectively.

Citation pour cette source

Mahdi Farahikia (2025). Rectangles in a circle (https://fr.mathworks.com/matlabcentral/fileexchange/61047-rectangles-in-a-circle), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2016a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0