help-octave
[Top][All Lists]
Advanced

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

matrix addition skipping nan values


From: Naveen Garg
Subject: matrix addition skipping nan values
Date: Sat, 19 Dec 2009 12:02:29 -0500

I would like to do element wise addition over matrices while skipping NaN values. there is nansum, but it does column wise addition within a matrix. 

let

a = NaN * zeros(3)

b = ones(3)

i want 
c = nanadd(a, b)
and 
c = b 

and 

d = nanadd(a,a)
and
d = a


reply via email to

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