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$>
References: <hs85h5$c2j$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1273471983 29151 (10 May 2010 06:13:03 GMT)
NNTP-Posting-Date: Mon, 10 May 2010 06:13:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:634125

"sumeet pushpam" <> wrote in message <hs85h5$c2j$>...
> 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