help-octave
[Top][All Lists]
Advanced

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

Re: Strict monotonic X-Values (filter duplicate entries)


From: Søren Hauberg
Subject: Re: Strict monotonic X-Values (filter duplicate entries)
Date: Tue, 10 Feb 2009 18:27:18 +0100

tir, 10 02 2009 kl. 18:09 +0100, skrev Stefan Pofahl:
> Hello,
> 
> I wonder, if there is a function to chance a vector into a strict
> monotonic vector.
> I found nothing, so I wrote my on routine (see below).
> If there is more elegant way, it would be fine, if someone can tell me.

I haven't tested this, but could you do

  sort (unique (x))

?

Søren



reply via email to

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