plot f = t/T*heaviside(-t/T+1)*heaviside(t) + heaviside(t-T) for T=5