help-octave
[Top][All Lists]
Advanced

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

Re: how to get the element >0 in array


From: Ian McCallion
Subject: Re: how to get the element >0 in array
Date: Wed, 18 Jul 2018 14:30:47 +0100

find(~a)

On 18 July 2018 at 14:20, turbofib <address@hidden> wrote:
i've the following array:

a=[-3 -5 0 5 4]

i want to loop it until i find element>0 (5)


can I loop it but is there a faster method?





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html




reply via email to

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