help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: replacing NaN


From: Etienne Grossmann
Subject: Re: replacing NaN
Date: Tue, 24 Apr 2001 18:03:00 GMT

m = [1, 2, nan;3, 4,inf;5,nan,6];
m(find(isnan(m))) = 0

m =

  1  2  0
  3  4  Inf
  5  0  6

  Etienne



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]