From help-octave-request at bevo dot che dot wisc dot edu Wed Dec 18 06:17:43 2002 Subject: put to 0 From: Paolo Ariano To: help-octave at bevo dot che dot wisc dot edu 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 -------------------------------------------------------------