help-octave
[Top][All Lists]
Advanced

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

Re: find position originally in new array


From: Doug Stewart
Subject: Re: find position originally in new array
Date: Wed, 24 Oct 2018 08:48:06 -0400



On Wed, Oct 24, 2018 at 8:39 AM gigiolone123 <address@hidden> wrote:
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

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


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




--
DASCertificate for 206392


reply via email to

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