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: Stefan Pofahl
Subject: Re: Strict monotonic X-Values (filter duplicate entries)
Date: Wed, 18 Feb 2009 23:54:24 +0100

Hello Jaroslav - Hello Søren!

As Jaroslav allready wrote, [Y, I, J] = unique(x)
is perfect. - So, thank you for the hint.
"I" is the vector of the index-numbers
of the strict monotonic vektor elements
and Y is the strict monotonic vektor.

Regards,

Stefan

***

2009/2/10 Jaroslav Hajek <address@hidden>:
> 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
>



-- 
Tel.: 0731-3805149
Ochsensteige 48
89075 Ulm



reply via email to

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