Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Is there any non loop implement to find the index of a vector  in the matrix?
Date: Sun, 14 Dec 2008 18:04:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <gi3hqi$ka9$1@fred.mathworks.com>
References: <gi31mu$sqn$1@fred.mathworks.com> <gi388u$ed0$1@fred.mathworks.com> <gi3a4u$r0s$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1229277842 20809 172.30.248.37 (14 Dec 2008 18:04:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 14 Dec 2008 18:04:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:506922


"zedong 
" <zdongwu@gmail.com> wrote in message <gi3a4u$r0s$1@fred.mathworks.com>...
> "us " <us@neurol.unizh.ch> wrote in message <gi388u$ed0$1@fred.mathworks.com>...
> .....
> >      [ix,ix]=ismember(a,b,'rows');
> ......

  I believe you will need to sort the rows of a and b before using Urs's 'ismember' technique, if you want such rows as [4,5] and [5,4] to be regarded as identical:

 [ix,ix]=ismember(sort(a,2),sort(b,2),'rows');

Roger Stafford