function output=Hmwk1Function(t)
output=(t+1).*rect(t+1.5)+rect(t+0.5)+2*rect(t-0.5)+(2-t).*rect(t-1.5);
