min/max with NaN values

Frederic Jourdin frederic.jourdin at shom.fr
Wed Nov 24 10:11:44 CET 2010


Hi all !
if I run this:

a= [    1, %nan;    4,    4];
b= [ %nan,    3;    3,    6];
c= [    2,    2; %nan, %nan];
min( a, b, c)

Scilab returns the following matrix:
NaN  NaN
NaN  NaN

while the expected matrix should be:
1  2
3  4

Why?

thanks
Fred

Scilab 5.3.0.beta3 on Linux




More information about the users mailing list