[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
uniq function?
From: |
Daniel Heiserer |
Subject: |
uniq function? |
Date: |
Tue, 03 Nov 1998 08:16:13 +0100 |
Hi,
is there a unique function similar to unix' unique.
Assume I have a vector whichs elements are sorted.
I want to kick out every element which is twice.
a=[1 1 1 2 3 4 5 6 6 6 6];
b=unique(a)
>> b=[1 2 3 4 5 6]
--
Mit freundlichen Gruessen
Daniel Heiserer
-----
--------------------------------------------------------------
Dipl.-Pys. Daniel Heiserer, BMW AG, Knorrstrasse 147, 80788 Muenchen
Abteilung EK-20
Tel.: 089-382-21187, Fax.: 089-382-42820
mailto:address@hidden
- uniq function?,
Daniel Heiserer <=