Circle Intersection Fill

 

Click here to download MATLAB code and description – CircleIntersectionsFill

Matlab function will draw a filled in area on a plot corresponding to the intersection between multiple circles. It can be designated whether to fill areas outside or inside each circle.

XYR_OI is a matrix of circles, where the first column represents the X coordinates of the center of the circles, second column represents the Y coordinates, and the third column represents the circle’s radius. The fourth column represents whether you want the outer or inner area: 1 = outer area, 0 = inner area.

Color is a string used to define the fill color