function y = batas_posisi(x) l=10; if x >= 0.5*l y = 0.5*l; elseif x <= -0.5*l y = -0.5*l; else y = x; end