In this problem, we will design a hybrid subband/sinusoidal algorithm. Use the audio file ch9aud3_24k.wav. Consider a frame size of $N=512$ samples, no overlap between frames, and $K=20$ sinusoids. Note that the sampling frequency of the given audio file is $24 \mathrm{kHz}$.
a. Write a MATLAB program to design a sinusoidal A-by-S algorithm to pick 20 sinusoids in each frame. Compute the MSE, $\hat{E}=\frac{1}{N_f} \sum_{i=1}^{N_f} E_i$, where $N_f$ is the number of frames and $E_i=\mathrm{E}\left[e_i^2(n)\right]$ is the MSE at the $i$-the frame.
b. Modify the program in (a) to design a sinusoidal A-by-S algorithm to pick 15 sinusoids between $20 \mathrm{~Hz}$ and $6 \mathrm{kHz}$; and 5 sinusoids between $6 \mathrm{kHz}$ and $12 \mathrm{kHz}$ in each of the frames. Did you observe any performance improvements in terms of computational efficiency and/or perceptual quality?