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: Jaroslav Hajek
Subject: Re: Strict monotonic X-Values (filter duplicate entries)
Date: Tue, 10 Feb 2009 19:03:28 +0100

On Tue, Feb 10, 2009 at 6:27 PM, Søren Hauberg <address@hidden> wrote:
> 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
>

unique alone suffices - the result is already sorted.

cheers

-- 
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



reply via email to

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