help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

uniq like function?


From: Evan
Subject: uniq like function?
Date: Fri, 16 Apr 2010 14:55:07 +0800

I know there is a function of "unique" which returns unique elements.
I occasionally need a function like the "uniq" command under bash
which only omit adjacent repeated elements. For example, uniq ([1, 2,
2, 3, 2, 2]) returns [1, 2, 3, 2]. Is there already such a function in
octave? Thanks in advance.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]