help-octave
[Top][All Lists]
Advanced

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

Re: find number position


From: Doug Stewart
Subject: Re: find number position
Date: Thu, 11 Oct 2018 21:11:50 -0400



On Thu, Oct 11, 2018 at 8:09 PM turbofib <address@hidden> 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




this works for me :-)
a=[5 18 4 nan]
b=sort(a)
b(1)
c=find(a==b(1))


--
DASCertificate for 206392


reply via email to

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