function y=signM(x)

y=2*((x>=0)-.5);