[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error with sort function in octave
From: |
Philip Nienhuis |
Subject: |
Re: error with sort function in octave |
Date: |
Sat, 8 Feb 2014 09:38:30 -0800 (PST) |
585venkat wrote
> Hi all,
>
> 'sort' function in octave is giving me error in the following case.
>
> [a,b]=sort([1,3,6,4,5])
> a =
>
> 1 3 4 5 6
>
> b =
>
> 1 2 4 5 3
>
>
> In the above example 'b' should give ranking of the original values
> passed(i.e 1,2 5,3 4), but it is not giving. Any explanation for this ??
Look again.
AFAICS, Octave got it right.
Philip
--
View this message in context:
http://octave.1599824.n4.nabble.com/error-with-sort-function-in-octave-tp4661756p4661757.html
Sent from the Octave - General mailing list archive at Nabble.com.