help-octave
[Top][All Lists]
Advanced

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

Re: find minimum non-zero


From: gigiolone123
Subject: Re: find minimum non-zero
Date: Thu, 14 Nov 2019 09:48:09 -0600 (CST)

Sorry
I committed an inaccuracy

i want to find the first number (non zero) in each row


 example:

     1   0   0   8   7   0   0   2
     0   0   0   0   0   0   0   0
     2   0   0   6   0   0   1   0

ans: 1 0 2

another example:

     0   0   0   8   7   0   0   2
     0   0  3   0   0   0   0   0
     5   0   0   6   0   0   1   0

ans: 8 3 5


 




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



reply via email to

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