help-octave
[Top][All Lists]
Advanced

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

getting masks


From: Artur Jorge Azevedo Carvalho
Subject: getting masks
Date: Mon, 24 May 1999 14:06:33 +0100

hi! how can i do in an oct file the following:
a=[
1.1 1.2 3.2
1.4 0.0 2.3
6.3 -5.1 1.1
]
a!=0 to give
[
1 1 1
1 0 1
1 1 1
]

the best way i've found to do this was:
a=Matrix(!!a);

to give the same result, but it has to exist a better way to do this...

thks in advance...



reply via email to

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