FIR filtering & FFT processing for a signal

S
Saanvi · Feb 22, 2021 · 1.9K views
Question
Hi, I have the question below:   Part 1: 1) I do not know what to design the filters to be, based on what? 2) I am not sure if I displayed the magnitude spectrum correctly. 3) how do i process the signal by the filter? Part 2: How do I filter by using FFT processing? please find my code is in the M-FILE attached . Your help is appreciated.
Expert Answer
Profile picture of Neeta Dsouza
Neeta Dsouza PhD Expert
Answered Aug 14, 2026
It looks like they don't care what filter you use. Why not just use a rect filter (a box)? You can do this with just convolving with ones.
 
 
firFilter = ones(1, 21)/21; % Or whatever window width you want.
out = conv(in, firFilter, 'same');
Take the FFT of both original and filtered  signals and display them. Use subplot(2,2,n) to display the 4 signals all in one figure.

 

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!