You can use the Heaviside function defined in Exercise 1 to create a number of interesting plots.
a) Use the command sequence t = linspace(−3,3,1000); y = Heaviside(t−1); plot(t,y,'o') to create a “delay" of one second in turning “on” the switch represented by the Heaviside function.
b) Use the command sequence t = linspace(−3,3,1000); y = Heaviside (−t); plot(t,y,'o') to reflect the usual graph of the Heaviside function across the vertical axis.
c) Use the command sequence t = linspace(−3,3,1000); y = Heaviside(t + 1) − Heaviside (t − 1); plot (t,y,'o') to create a “pulse” of width two and height one, centered at the origin.
d) What sequence of commands will produce the pulse shown in Figure?
Figure A pulse function
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.