help-octave
[Top][All Lists]
Advanced

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

recreate array original


From: turbofib
Subject: recreate array original
Date: Thu, 1 Aug 2019 12:53:22 -0500 (CDT)

hi,
look this:

a=[2 6 1;2 5 8;3 1 6]

[b,c]=find(a>3);

b= 1 
    2 
    2
    3

c=  2
     2
     3
     3

d=zeros(size(a));

I want to write a new matrix of zeros but keeping the values ​​found with
find

0 6 0
0 5 8
0 0 6

any help me?^ thank  (i see help find but i not found answer)






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



reply via email to

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