1function y = fcn(u)
2if u>0
3    a=1;
4else
5    a=-1
6end
7y = a;