A student reads in a signal from a .wav file. He plots the fft of the signal usi
ID: 1717095 • Letter: A
Question
A student reads in a signal from a .wav file. He plots the fft of the signal using the code shown below, which generates the Plot shown below. For this signal, fs was 10.000 and length(x) is 5,000. There are no small sine waves. The amplitude of the smallest sine wave is at least 10% of the amplitude of the largest. From the plot, the student concludes there are 4 sine waves, at the following amplitudes and frequencies: Pick one of the following options, writing your answer on the back of this page The student got everything correct, or very nearly correct. Write "I PICK. A", on the back of this page. The measurements are wrong, but there is insufficient information for me to figure out what the correct answer is. Write "I PICK B" on the back of this page, and tell me what additional information you would need to figure out the right answer. The student is wrong, but you can figure out the right answer. Write "I PICK C" on the back of this page, and tell me the correct number of sine waves, along with the amplitude (in volts) and frequency (in Hz) of each sine wave.Explanation / Answer
Answer for this question is Option-A
program is working fine and results the same output as shown in the figure.
clear all; close all; clc;
[x,fs]=audioread('signal.wav');
xf=fft(x,50*fs);
freq=[0:length(xf)]/fs;
plot(freq,abs(xf));
xlabel('frequency(Hz)');
ylabel('Amplitude(volts)');
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.