Maybe you should send JWE a diff of the documentation added to min and max, including your example. x=[1,NaN;NaN,4]; min( x.' ); max( x.'); I think its a good time to add this documentation. Regards, -Muthu