|
From: | Alex Zvoleff |
Subject: | Re: replace NaN with 0 |
Date: | Sat, 02 Dec 2006 18:02:58 -0800 |
This should work (octave 2.9.9): vector(isnan(vector)) = 0; Alex On Sat, 2006-12-02 at 17:40 -0800, the_verge wrote: > Hi, > > I was wondering if there is a quick way to replace NaNs in a vector with > zeros without running a loop on the vector and calling isnan() for each > element? > > Thanks, > Vergil
[Prev in Thread] | Current Thread | [Next in Thread] |