Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: need help with distance of coordinates
Date: Wed, 24 Nov 2010 10:21:04 +0000 (UTC)
Organization: &#44397;&#48124;&#45824;&#54617;&#44368;
Lines: 43
Message-ID: <icioug$2l4$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1290594064 2724 172.30.248.35 (24 Nov 2010 10:21:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 24 Nov 2010 10:21:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2412351
Xref: news.mathworks.com comp.soft-sys.matlab:689594

Hello everybody
i need to calculate distances of coordinates.
for example

x1=[1 2 3] 
y1=[1 2 3]
and
x2=[2 4 6 8]
y2=[2 4 6 8]

(much more values in original data)

then i want to make matrix as below

       1,1  1,2  1,3   2,1  2,2  2,3  3,1  3,2  3,3
2,2    v     v     v     v      v     v     v     v     v
2,4    v     v     v     v      v     v     v     v     v
2,6    v     v     v     v      v     v     v     v     v
2,8    v     v     v     v      v     v     v     v     v
4,2    v     v     v     v      v     v     v     v     v
  .      .     .      .      .      .     .      .     .      .
  .      .     .      .      .      .     .      .     .      .
8,8    v     v     v     v      v     v     v     v     v

v= values calculated
and i have to remove specific values
for example below 20.

and the result could be like this

       1,1  1,2  1,3   2,1  2,2  2,3  3,1  3,2  3,3
2,2    v     v     v     v      v     v     v     v     v
2,4    v     v     v            v     v     v     v     v
2,6    v     v     v            v           v     v     v
2,8    v           v             v           v     v     v
4,2    v                         v           v     v     v
  .      .                         .            .     .      .
  .      .                         .            .     .      .
8,8    v                        v                  v     v

and you'd better to see this post by view original format.
plz help me....