To desing low pass FIR filter analysis and application

R
Raphael · Mar 2, 2021 · 2K views
Question
1.to design lp fir filter using fir1, fir2 ,firpm 2. use three cutoff frequencies 500-1000hz, 1001-2000hz,2001-3000hz 3.plot frequency response using freqz and fft 4.find the group delay using angle() unwrap() freqz() and diff() 5.filter signal using filter() and then play original and sound and filtered using soundsc() 6.compare the outputs of myfilter() function to implement filtering operation   amongst all these please let me know how can i use combination like plot ( 20*log10(abs(fft(b,8000)))); type of command..   i already used fir1 and got attenuation of min 40db .. played the original sound signal.. struggling with from 3rd step starting with fft and plot function
Expert Answer
Profile picture of Prashant Kumar
Prashant Kumar PhD Expert
Answered Aug 24, 2026
Generally the returned values from filter design function are two vector a and b that represent the nominator and denominator of the the transfer function H, you can follow this protocol :
 
 
 % Example of the vector a and b :
  b=[1.2 0.9  1 2 2.3 6];
  a=[1.6 0.75 1 1 -1 0.99]; 
  N=512; % number of points for frequency computation
  Fs=8000;  %  8Khz
  [h,f]=freqz(b,a,N,Fs);
  figure, plot(f,20*log10(abs(h)));
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!