[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: put to 0
From: |
Paul Kienzle |
Subject: |
Re: put to 0 |
Date: |
Wed, 18 Dec 2002 07:44:25 -0500 |
a(a<x)=0
Paul Kienzle
address@hidden
----- Original Message -----
From: "Paolo Ariano" <address@hidden>
To: <address@hidden>
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
-------------------------------------------------------------
- put to 0, Paolo Ariano, 2002/12/18
- Re: put to 0,
Paul Kienzle <=