% tent function centered at 1/2 and of width 1/10 function f = bump(x) f = heaviside(1 - abs(x - 1/2)/0.05).*(1 - abs(x - 1/2)/0.05);