Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!z24g2000prh.googlegroups.com!not-for-mail
From:  gopla <gopalgajjar@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: modified unique
Date: Wed, 24 Oct 2007 05:54:46 -0700
Organization: http://groups.google.com
Lines: 14
Message-ID: <1193230486.076915.167300@z24g2000prh.googlegroups.com>
NNTP-Posting-Host: 203.197.163.97
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1193230490 20300 127.0.0.1 (24 Oct 2007 12:54:50 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 24 Oct 2007 12:54:50 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 IN-S-BSRV09
Complaints-To: groups-abuse@google.com
Injection-Info: z24g2000prh.googlegroups.com; posting-host=203.197.163.97;
Xref: news.mathworks.com comp.soft-sys.matlab:434391



Hi,
     I have a array A = [ 1 2 3 3 4 5 5 5 6 6 7 8 9] and want output B
= [1 2 4 7 8 9]

i.e. select only the unique numbers from the array and discard all
numbers that get repeated in the original array.

I have tried with 'unique' and then a for loop which 'find' number of
occurrence of a element of the output of unique in the original array.
I want to simplify this and try to remove the for loop.

With Regards
Gopla