Identification of overlapping points
1 view (last 30 days)
Show older comments
Mariam Shahab on 18 Aug 2022
Answered: Image Analyst on 18 Aug 2022
I have the following code.
for r=10:5:24 % r is radius
circles(r,17,12); % using circles function
if mod(i,2)==1; % even case
if mod(j,2)==1; % odd case
I have attached an image of the plot.
I want only the small circles (red and blue points) overlapping with the larger circles to appear. Any advice on how this can be achived. Many thanks.
Below is the circles function code.
function [x, y] = circles(r,Cx,Cy)
Image Analyst on 18 Aug 2022
I'd try pdist2 to see when the centers of the small circles are within their radius of any of the points on the larger circles.
More Answers (0)
Find more on 2-D and 3-D Plots 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!