# Is it possible to make a circle containing specific points?

2 views (last 30 days)
Sierra on 2 Jun 2022
Commented: Sierra on 4 Jun 2022
I want to make a circle using 'percentile'.
for example, If the percentile is 100, the circle contains every points.
I know how to make a quadrangle using perenctile. but i have no idea making a circle using percentile.
Thanks.
Sierra on 4 Jun 2022
Thanks, Jan
I read it and I will do that from now on.

Image Analyst on 2 Jun 2022
You can use viscircles to draw a circle. Something like
numPoints = 200;
x = rand(1, numPoints) - 0.5;
y = rand(1, numPoints) - 0.5;
plot(x, y, 'b.', 'MarkerSize', 20);
grid on;
radii = sort(sqrt(x.^2 + y.^2), 'ascend');
% Find circle with 70% of the points
index = 140
ans =
Group with properties: Children: [2×1 Line] Visible: on HitTest: on Show all properties
title('70% of points are within the red circle')
axis square

### Categories

Find more on Annotations 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!

Translated by