Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Efficient computation: differences of column vectors of matrix
Date: Wed, 1 Jul 2009 12:36:01 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 13
Message-ID: <h2fl7h$1in$1@fred.mathworks.com>
References: <cd6f7a80-0651-417d-ac72-88d6b326e1fe@b14g2000yqd.googlegroups.com> <63985d2a-adf8-47c9-aaa3-52e0a1cb9ede@37g2000yqp.googlegroups.com> <h2fidh$mpl$1@fred.mathworks.com> <h2fjmr$gdn$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1246451761 1623 172.30.248.35 (1 Jul 2009 12:36:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 1 Jul 2009 12:36:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:551971


"oruganti murthy" <omurthy@yahoo.com> wrote in message <h2fjmr$gdn$1@fred.mathworks.com>...
> Hi
> I'm also having a similar problem. 
> I am having two matrices containing 150 size vectors. say A is 5000x150 aand B is 1500x150. I want to find pairwise euclidean distance between vectors of A and B. i.e. I want 5000x1500 matrix. 
> Is there any efficient way to do it. 
> If not distance, even absolute difference is fine. 
> Because at next level these numbers (5000 changes to 25000)also increase and I am encountering OUT of MEMORY or very time consuming problems.
> Thanking you very much,
> 

Take a look at function BSXFUN

Bruno