Thread Subject: Euclidean distance

Subject: Euclidean distance

From: Kostas

Date: 1 Nov, 2009 17:45:04

Message: 1 of 3

Hi there guys,
i got a problem that involves euclidean distance.
any ideas how to calculate the 3d dimensional distance between two points ?

Subject: Euclidean distance

From: tpl@eng.cam.ac.uk (Tim Love)

Date: 1 Nov, 2009 17:48:49

Message: 2 of 3

"Kostas " <m.yoda@yahoo.gr> writes:

>Hi there guys,
>i got a problem that involves euclidean distance.
>any ideas how to calculate the 3d dimensional distance between two points ?
This doesn't sound like a matlab problem to me.

Subject: Euclidean distance

From: Dave Robinson

Date: 2 Nov, 2009 10:22:02

Message: 3 of 3

"Kostas " <m.yoda@yahoo.gr> wrote in message <hckhf0$pk6$1@fred.mathworks.com>...
> Hi there guys,
> i got a problem that involves euclidean distance.
> any ideas how to calculate the 3d dimensional distance between two points ?

EuclidDistance = sqrt((x1-x2)^2 + (y1-y2)^2 + (z1-z2)^2);

Where x1,y1,z1 are the 3D coordinates of point 1 and surprise surprise x2,y2,z2 are the 3D coordinates of point 2.

Hope that helps

Regards

Dave Robinson

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
mean square error ashish khare 20 Jan, 2011 02:07:55
rssFeed for this Thread

Contact us at files@mathworks.com