Signals as MATLAB vectors.

Plot your figures within the window of � = [−5,5]. Remember, all your
answers must be on a single file and your script must be self-sufficient and run without any errors to
receive any points. You should produce only one figure. Do not plot anything that you are not instructed to do so within this document.
Question 1 (100 points). A system is defined below where �[�] is the input signal, �[�] is the impulse
the response, and �[�] is the output.
Fig. 2 provides a plot of the signals � and �.
• Plot the output �[�] for the system defined above, given the input signal �[�] as a single figure. Do not forget about the plotting window provided above.
Hint:
• Define the provided signals as MATLAB vectors. It is the reverse of the first two homework.
• Use built-in Matlab function “conv()” for convolution. Follow the link for documentation
regarding its use: https://www.mathworks.com/help/matlab/ref/conv.html

Sample Solution