Question: Using MATLAB, estimate the power spectral density of the following signal:
x[k] = 2 cos(0.4πk + θ1) + 4 cos(0.8πk + θ2)
where θ1 and θ2 are independent random variables with uniform distribution between [0, π]. Use a sample realization of x[k] with 10 000 samples, the Bartlett window with length 1024, an overlap of 600 samples, and the average Welch approach.