|
From: | Anton Dereventsov |
Subject: | Re: find number position |
Date: | Fri, 12 Oct 2018 18:45:14 -0400 |
The following works perfectly:
find (min (a))
turbofib wrote
> hi,
> i want to find lowest number position
> a=[5 18 4 nan]
> sort(a)
>
> 4 5 18 nan
>
> if i write :
>
> find(a==4) is not correct...i get ans = 0
>
>
>
> how can i position lowest number? thank you
> --
> Sent from:
> http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
Hi,
The following works perfectly:
find (min (a))
and
find (a==4)
returns 3, as expected.
Pantxo
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
[Prev in Thread] | Current Thread | [Next in Thread] |