I want to make a function just like the one in attached photo using heaviside command
The graph i get by using my following code,does not continue after t=2
I am trying my following code:(how can i change this code to get output plot like the attached photo)
clcclear allclose allsyms tx=[heaviside(t)-heaviside(t-1)]+heaviside(t-2)ezplot(x)axis([-0.5 4 -0.25 1.5])
Best Answer