Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Start modify the with the Matlab code I provided or that you used in class so fa

ID: 2081146 • Letter: S

Question

Start modify the with the Matlab code I provided or that you used in class so far, modify the code (or your own if you prefer) to: a. Graph the signal: y = 2 + 8* sin(6000t) + 4* cos(2000t) b. Perform an FFT on the signal and graph it. c. Graph the output (times domain) after the signal runs through a low pass filter with a cutoff frequency of 600 Hz. d. Graph the output (time domain) after the signal runs through a high pass filter with a cutoff frequency of 500 Hz. Submit a graph for each part that shows signal in a reasonable way: For the FFT this means that it shows all active frequencies, and not more than 50% of empty space. For the time signals, a few periods of the relevant signal should be good- 50 cycles squished together so you can't really make anything out is not good. WARNING: Be sure your signals are not aliased!

Explanation / Answer

t=1:0.01:10;
y=2+8*sin(6000*t)+4*cos(2000*t);

subplot(2,2,1)

plot(t,y);%Part a
title('Plot 1');
a=fft(y);
subplot(2,2,2)

plot(t,a);%Part b
title('Plot 2');

%Part c
b=fir1(34,1/(2*600),'low');
c=filter(b,1,y);
subplot(2,2,3)
plot(t,c);
title('Plot 3');

%Part d
d=fir1(50,1/(2*500),'high');
e=filter(d,1,y);
subplot(2,2,4)
plot(t,e);
title('Plot 4');

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote