how to design a low pass filter?

Hello
Can I anyone help me to write the matlab code to design a low pass filter to filter a music (audio signal). The signal is (220500x2) matrix with Fs=22050 and the cut off frequency is 300 Hz.
This is what I have done
[signal,Fs]=audioread('signal.wav'); LP(1:300)=1; LP(LP301:220500)=0; fil_sig=LP.*abs(fft(signal)); ===> this line would give me errore because of the dot multiplication and I think I am missing the filter coefficients.
Thanks in advance

1 Comment

Md Nurullah
Md Nurullah on 15 Jul 2018
Edited: Md Nurullah on 15 Jul 2018
Hello
Can I anyone help me to write the matlab code to design a low pass filter. fs=40khz, N=1000, f1=1e3, f2=5e3, f3=10e3, fc=7khz, Filtered signal/output will be plot as time domain & freq. domain specturm.
TIA!

Sign in to comment.

Answers (0)

Categories

Find more on Audio Processing Algorithm Design in Help Center and File Exchange

Asked:

on 11 May 2016

Edited:

on 15 Jul 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!