function y = test(u)

switch u
    case 'pos'
        y=1;
    case 'neg'
        y=-1;
    otherwise
        y=0;
end

end