Are you a fellow Electrical Engineer? I never had to make anything that complicated, but I can give it a shot. I will fire up Matlab later. Here is something to try for now.
This will create a square impulse from 0 to 5. You can change it to move it to the locations in your plot.
n = -5 : 1 : 5
y = (n >= 0)
plot(n,y)
As for the triangle wave, I will figure it out later.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.