[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
put to 0
From: |
Paolo Ariano |
Subject: |
put to 0 |
Date: |
18 Dec 2002 13:14:09 +0100 |
hi *,
always playing with kangaroo processes :) some days ago Laurent (thanks)
help me to find 0 in a vector but now i've to define a treshold and put
to zero all values under the treshold:
a=[1.0000,0.0004,0.0030,3.0000,6.0000,0.4000,0.2000]
^^^^^^ ^^^^^
threshold = 0.01
new a=[1.0000,0.0000,0.0000,3.0000,6.0000,0.4000,0.2000]
which is the start point, i've to write an if< or there is a more
elegant way to do this ?
thanks
paolo
--
Paolo Ariano
Neuroscience PhD Student
DBAU & INFM Turin (Italy)
L'universita' segue un'organizzazione dinamica --Luca M.
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- put to 0,
Paolo Ariano <=