```Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: problem with division
Date: Wed, 29 Sep 2010 00:03:09 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 23
Message-ID: <i7tvnt\$2du\$1@fred.mathworks.com>
References: <i7tked\$pdt\$1@fred.mathworks.com> <i7tl6p\$fne\$1@fred.mathworks.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1285718589 2494 172.30.248.35 (29 Sep 2010 00:03:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 29 Sep 2010 00:03:09 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:674049

thanks matt,

I am faced with another similar problem:

I am given:

Coords=
[ 12    23;
76     45;
29     87]

The answers are supposed to be

F_12 = sqrt((76 - 12)^2 + (45 - 23)^2)
F_13 = sqrt((29 - 12)^2 + (87 - 23)^2)
F_21 = sqrt((12 - 76)^2 + (23 - 45)^2)
F_23 = sqrt((29 - 76)^2 + (87 - 45)^2)
F_31 = sqrt((12 - 29)^2 + (23 - 87)^2)
F_32 = sqrt((76 - 29)^2 + (45 - 87)^2)

I'm trying to use bsxfun but is becoming a bit puzzling.