Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
points inside a circle

Subject: points inside a circle

From: Konst

Date: 13 May, 2012 16:18:08

Message: 1 of 3

I have to vectors a,b and I want to draw a circle with its centre in a certain point eg (a(5),b(5)) and radius 1. The problem is that I don't actually want to draw the circle, but I just want to find which pairs of elements of my two vectors are inside it. I know how to do it with a rectangular but how does it work with a circle?
Thanks in advance

Subject: points inside a circle

From: John D'Errico

Date: 13 May, 2012 16:29:07

Message: 2 of 3

"Konst " <konstance1@hotmail.com> wrote in message <jooms0$ims$1@newscl01ah.mathworks.com>...
> I have to vectors a,b and I want to draw a circle with its centre in a certain point eg (a(5),b(5)) and radius 1. The problem is that I don't actually want to draw the circle, but I just want to find which pairs of elements of my two vectors are inside it. I know how to do it with a rectangular but how does it work with a circle?
> Thanks in advance

What is the relation between the radius of a circle, and the
Euclidean distance between a point and the center of a circle?

What does that information tell you about if that point is
inside the circle?

John

Subject: points inside a circle

From: ImageAnalyst

Date: 13 May, 2012 22:18:40

Message: 3 of 3

Have you ever heard of the Pythagorean Theorem? If you want, you can
use the hypot() function in MATLAB.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us