help-octave
[Top][All Lists]
Advanced

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

find position originally in new array


From: gigiolone123
Subject: find position originally in new array
Date: Wed, 24 Oct 2018 05:08:15 -0500 (CDT)

i want to find originally index position for a>0

example:

a=
0 1 3
4 0 1
1 2 0

a>0

i want this:

0 1 1
1 0 2
2 3 0

if element=0 i write 0..
if element is >0 i write position of originally array




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



reply via email to

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