% tent function centered at 1/2 and of width 1/2, plus a linear function function f = widebump1(x) f = heaviside(1 - abs(x - 1/2)/0.25).*(1 - abs(x - 1/2)/0.25) + x;