delta_t=0.001; % Sampling timefs=1/delta_t; % Sampling frequencyt = 0:delta_t:pi;% Time spaceN = 2048; % Block...

delta_t=0.001; % Sampling timefs=1/delta_t; % Sampling frequencyt = 0:delta_t:pi;% Time spaceN = 2048; % Block sizey1=2*sin(2*pi*1*t)+4*sin(2*pi*2*t)+3*sin(2*pi*4*t);y2=2*cos(2*pi*1*t)+4*cos(2*pi*2*t)+3*cos(2*pi*4*t);Y1 = abs(fft(y1, N));Y2 = abs(fft(y2, N));f=(0:length(Y1)-1)*fs/length(Y1);plot(f, Y1, 'r-', f, Y2, 'b'), grid on, legend('Y1', 'Y2', 'location', 'SouthEast')title 'FFT of y_1(t) and y_2(t)'xlim([0, 10])shg
Mar 30, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here