function ret = sFunction(x) a=0; b=0.5; c=1; if x<=a ret=0; end if ac ret=1; end end