Can someone please help with this electrical engineer quesition E are write an a
ID: 1717094 • Letter: C
Question
Can someone please help with this electrical engineer quesition
E are write an ant I for on the An anies Gycle of sor passing it et want to ave 4. A clock chic ycle, and printed circ because of had Are, ex, CEA S-6 too t TSinea to fo-, S-so GDC100 loss Art, are - Ba, 7 as our bos team losA. e Problem 23 FFTs I pass the analog signal x(0) = 0.333 sin2444t-555)- 0.666 cos2777t) Through an analogto-digital converter to create signal x[n]. I use a sampling rate of 10 kHz, and collect 5,000 samples (500 msec of data). I want to find the amplitude and frequency of each sine wave, by looking at the output of an FFTList at least one advantageand one disadvantage to each of the methods listed below. A) xfff(x) B) xffx,100-length(x) c) xfff(x. "kaiserlength(x),30,100*length(x)Explanation / Answer
1st question we can do it in below mention way upto my knowledge.
clc;
clear all;
close all;
dt=1/1000; %sampling rate
et=0.5; %end of interval
t=0:dt:et;
x=0.333*sin((2*pi*444*t)-555)-0.666*cos(2*pi*777*t);
subplot(2,1,1);
% firstof two plots
plot(t,x);grid on
% plotwithgrid
axis([0 et -8 8]);
% adjustscaling
xlabel('Time(s)');
% timeexpressedin seconds
ylabel('Amplitude');
%%%%%%%%%%%%%%%%%%%(1)%%%%%%%%%%%%%%%%%%
xf=fft(x);
n=size(x,2)/2;
amp_spec=abs(xf)/n;
%%%%%%%%%%%%%%%%%%%(2)%%%%%%%%%%%%%%%%
% xf=fft(x,100*length(x));
% %
% % %%%%%%%%%%%%%%%%%%%%(3)%%%%%%%%%%%%%%%
% xf=fft(x.*kaiser(length(x),30),100*length(x));
subplot(2,1,2);
freq=(0:79)/(2*n*dt);
plot(freq,amp_spec(1:80));grid on
xlabel('Frequency(Hz)');
ylabel('Amplitude');