Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: comparing matrices
Date: Mon, 10 May 2010 06:13:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <hs885f$sev$1@fred.mathworks.com>
References: <hs85h5$c2j$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1273471983 29151 172.30.248.38 (10 May 2010 06:13:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 10 May 2010 06:13:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:634125

"sumeet pushpam" <sahil1806@gmail.com> wrote in message <hs85h5$c2j$1@fred.mathworks.com>...
> i have 'M', a  10X11 matrix having different elements.
> and now i have 'B' 1X11 matrix which i want to compare with each of M's 10 rows and find out which row it is closest to??
> 
> thanks

  You need to define what you mean by "closest" between 11-element rows.  There are a number of different definitions of "distance" between vectors.

Roger Stafford