Discussion:
find position originally in new array
gigiolone123
2018-10-24 10:08:15 UTC
Permalink
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
Doug Stewart
2018-10-24 12:48:06 UTC
Permalink
Post by gigiolone123
i want to find originally index position for a>0
a=
0 1 3
4 0 1
1 2 0
a>0
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
This looks like a homework assignment.
I don't do homework for you. But If you show me what you have done then I
might suggest some changes. :-)

Doug
Post by gigiolone123
--
http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
--
DAS[image: Certificate for 206392]

<https://linuxcounter.net/user/206392.html>
Loading...