Using MATLAB, calculate and plot the DTFT magnitude and phase for each of the following signals.
(a) x[n] = n(u[n] - u[n-17])
Use L = 16, 32 point DFTs to identify the DTFTs and show your plots for -π ≤ ω ≤ π for each case of L separately.
(b) x[n] = ((1/8)^n + (1/2)^n)(u[n] - u[n-33])
Assume that x[n] is obtained through uniform sampling with sampling period Ts = 0.01 without aliasing. Use L = 32, 64 point DFTs to identify the DTFTs and show your plots for -fs/2 ≤ f ≤ fs/2 for each case of L separately.