function x = killnegatives2 (x) x = max (x, 0); endfunction