function x = killnegatives (x) x(x<0) = 0; endfunction