Question: Please help with #11 using matlab, needed info from questions 9 and 10 to answer 11. B Fourier transform routine to find the spectrum of
Please help with #11 using matlab, needed info from questions 9 and 10 to answer 11.


B Fourier transform routine to find the spectrum of a waveform con- 165 , Use the MATLAB soids with frequencies of 200 and 400 Hz. Make N 9. s 1 kHz. Take Fou full spectrum (i.e., po the Fourier transform of the waveform and plot the magnitude of the 512 points) as in Example 3.10. Generate a frequency vector so the roperly scaled horizontal axis. (Hint: To generate the waveform, 512 and spectrum ict a time vector t, then generate the signal using the code: x sin(2*pi f*t)sin (2*pi*f2*t)where fl 200 and f2- 400.) routine sig-noise to generate a waveform containing 200 and 400 Hz sine first construct e code: x - 10. Use th as in Problem 9, but add noise so that the signal to noise ratio (SNR) is -8 dB, HPlot the magnitude spectrum, but only plot the nonredundant points (2 to waves as sig-noise([200 400], -8,N) where N-512. Recall sig-noise assumes 1.e., x i.e., 1 kHz. f N/ and do not plot the DC term, which again is zero. Repeat for an SNR of -16 dB. at to plot the two spectra side by side for easy comparison and scale the fre- axis correctly. Note that the two sinusoids are hard to distinguish at the higher Use 16 dB) noise level. Ise the routine sig_noise to generate a waveform containing 20oT B Fourier transform routine to find the spectrum of a waveform con- 165 , Use the MATLAB soids with frequencies of 200 and 400 Hz. Make N 9. s 1 kHz. Take Fou full spectrum (i.e., po the Fourier transform of the waveform and plot the magnitude of the 512 points) as in Example 3.10. Generate a frequency vector so the roperly scaled horizontal axis. (Hint: To generate the waveform, 512 and spectrum ict a time vector t, then generate the signal using the code: x sin(2*pi f*t)sin (2*pi*f2*t)where fl 200 and f2- 400.) routine sig-noise to generate a waveform containing 200 and 400 Hz sine first construct e code: x - 10. Use th as in Problem 9, but add noise so that the signal to noise ratio (SNR) is -8 dB, HPlot the magnitude spectrum, but only plot the nonredundant points (2 to waves as sig-noise([200 400], -8,N) where N-512. Recall sig-noise assumes 1.e., x i.e., 1 kHz. f N/ and do not plot the DC term, which again is zero. Repeat for an SNR of -16 dB. at to plot the two spectra side by side for easy comparison and scale the fre- axis correctly. Note that the two sinusoids are hard to distinguish at the higher Use 16 dB) noise level. Ise the routine sig_noise to generate a waveform containing 20oT
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
