Path: news.mathworks.com!not-for-mail
From: "John D'Errico" <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: eliminate identical raws
Date: Sat, 16 Feb 2008 04:09:02 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 15
Message-ID: <fp5nku$nek$1@fred.mathworks.com>
References: <27823314.1203129850043.JavaMail.jakarta@nitrogen.mathforum.org>
Reply-To: "John D'Errico" <woodchips@rochester.rr.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1203134942 24020 172.30.248.38 (16 Feb 2008 04:09:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 16 Feb 2008 04:09:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: news.mathworks.com comp.soft-sys.matlab:451790


vladimir <rus_lopes@comcast.net> wrote in message 
<27823314.1203129850043.JavaMail.jakarta@nitrogen.mathforum.org>...
> I have a probability problem that requires matrix A=[1 1 1 2 2] going through 
perms(A) which gives me many identical rows. How do I eliminate all the 
identical rowa but one? Answer probably is the easy one, but not for a beginner 
like myself. Thanks much.
> Vladimir T

I don't know if its easy, but the answer is
definitely a "unique" one. 

unique(B,'rows')

HTH,
John