From help-octave-request at bevo dot che dot wisc dot edu Wed Dec 18 06:44:25 2002 Subject: Re: put to 0 From: Paul Kienzle To: Paolo Ariano , help-octave@bevo.che.wisc.edu Date: Wed, 18 Dec 2002 07:44:25 -0500 a(a To: Sent: Wednesday, December 18, 2002 7:14 AM Subject: put to 0 > 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 > ------------------------------------------------------------- > ------------------------------------------------------------- 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 -------------------------------------------------------------