# Matlab code for FIR filter design

1. ## fir filter matlab

Can anybody help to find our FIR filter design for random noise removal.

2. ## matlab noise filter

What is the type of filter you want? You can use the filter design tool box that comes with matlab (check matlab help).. A simple cammand fir will design the filter for you..

1 members found this post helpful.

3. ## fir matlab

What kind of signal do you use? Filter must be matched to your signal.

1 members found this post helpful.

•

4. ## fir filter matlab code

Your FIR should be a low pass in nature, but the specification has to be extracted from noise spec.

5. ## matlab fir

in general cases

Find the noise variance or estimate it

use the "fspecial" to design u r quick gaussian filter

might work easily ..but it depends of the noise distribution...

If u want a real good answer....u r questions must be very specific

6. ## noise filter matlab

Originally Posted by ztanish
Can anybody help to find our FIR filter design for random noise removal.
please you want filter noise in what frequency?

7. ## matlab filter noise

use fdatool in Matlab
>> fdatool
br

8. ## matlab code for fir filter

Filtering noise through a simple Low Pass filter will be a naive method but its a good step if its your first try.

As a first step check out "fir1" in matlab.

bye.

•

9. ## filter noise matlab

Use FDATOOL in matlab. If you type
>> fdatool
in command window, Fda tool will be opened. There you can select FIR or IIR filter, order of filter and cutoff freq. of filter (either HPF, LPF or BPF). That code will automatically generate .m file for you.

1 members found this post helpful.

10. ## matlab fir filter

Hi,

Try this " help firwiener " and read how to use. This is easy step to filtering noise and no need to design in "fir" function learn it as benchmark, then u should design parameter of "fir1" for filtering by yourself.

•

11. ## matlab fir filter design

Originally Posted by maomun
Hi,

Try this " help firwiener " and read how to use. This is easy step to filtering noise and no need to design in "fir" function learn it as benchmark, then u should design parameter of "fir1" for filtering by yourself.

tanks for help

12. ## fir filter in matlab

try using matlab for moving avg filters

2 members found this post helpful.

13. ## matlab program for fir filter

give ur email id i 'll send the code to u as a .m file.

2 members found this post helpful.

14. ## matlab fdatool

you should know what type filter matched to your apllications, LPF,BPF,or HPF, then you should know what charateristic the filter have , such as cut off frequency , ripple wave in passband and attenuation! wish it helps !

15. ## fdatool matlab

Originally Posted by ztanish
Can anybody help to find our FIR filter design for random noise removal.
can u please giv me the code which u had recived...........i hav a project to do
send tat to my mail id tejaswi.subash@gmail.com

Originally Posted by cydi
What is the type of filter you want? You can use the filter design tool box that comes with matlab (check matlab help).. A simple cammand fir will design the filter for you..
can u giv me the code which u recived tat is matlab code for fir filter design as i hav aproject to do.please do help me
my email id is tejaswi.subash@gmail.com

Originally Posted by Unomano
What kind of signal do you use? Filter must be matched to your signal.
can u giv me the code which u recived tat is matlab code for fir filter design as i hav aproject to do.please do help me
my email id is tejaswi.subash@gmail.com

thank you

Originally Posted by Unomano
What kind of signal do you use? Filter must be matched to your signal.
can u giv me the code which u recived tat is matlab code for fir filter design as i hav aproject to do.please do help me
my email id is tejaswi.subash@gmail.com

thank you

Originally Posted by helios
in general cases

Find the noise variance or estimate it

use the "fspecial" to design u r quick gaussian filter

might work easily ..but it depends of the noise distribution...

If u want a real good answer....u r questions must be very specific
can u giv me the code which u recived tat is matlab code for fir filter design as i hav aproject to do.please do help me
my email id is tejaswi.subash@gmail.com

Originally Posted by armess
give ur email id i 'll send thcan u giv me the code which u recived tat is matlab code for fir filter design as i hav aproject to do.please do help me
my email id is tejaswi.subash@gmail.come code to u as a .m file.

Originally Posted by sprao
Use FDATOOL in matlab. If you type
>> fdatool
in command window, Fda tool will be opened. There you can select FIR or IIR filter, order of filter and cutoff freq. of filter (either HPF, LPF or BPF). That code will automatically generate .m file for youcan u giv me the code which u recived tat is matlab code for fir filter design as i hav aproject to do.please do help me
my email id is tejaswi.subash@gmail.com.

16. ## noise filtering matlab

clear all;
close all;
rp=input('enter the pass band ripple');
rs=input('enter the stop band ripple');
fp=input('enter the pass band ferquency');
fs=input('enter the stop band frequency');
f=input('enter the sampling frequency');
wp=2*fp/f;
ws=2*fs/f;
num=-20*log10(sqrt(rp*rs))-13;
dem=14.6*(fs-fp)/f;
n=ceil(num/dem);
n1=n+1;
if (rem(n,2)~=0);
n1=n;
n=n-1;
end
y=boxcar(n1);
b=fir1(n,wp,y);
[h,o]=freqz(b,1,256);
m=20*log10(abs(h));
subplot(2,2,1);
plot(o/pi,m);

17. ## fir filter design matlab

Originally Posted by pranchith
clear all;
close all;
rp=input('enter the pass band ripple');
rs=input('enter the stop band ripple');
fp=input('enter the pass band ferquency');
fs=input('enter the stop band frequency');
f=input('enter the sampling frequency');
wp=2*fp/f;
ws=2*fs/f;
num=-20*log10(sqrt(rp*rs))-13;
dem=14.6*(fs-fp)/f;
n=ceil(num/dem);
n1=n+1;
if (rem(n,2)~=0);
n1=n;
n=n-1;
end
y=boxcar(n1);
b=fir1(n,wp,y);
[h,o]=freqz(b,1,256);
m=20*log10(abs(h));
subplot(2,2,1);
plot(o/pi,m);
please run it and give us the input with the output

thanks

18. ## fir in matlab

for good results you may want to use either Kaiser's or Blackman's window. The rectangular window wold not give good attenuation in the stop band

1 members found this post helpful.

•

19. ## Re: Matlab code for FIR filter design

i want a matlab code for filter design using kaiser window

20. ## Re: Matlab code for AWGN filter

Hi all.
i have added AWGN to my speech signal, how to filter it out,?
how to know the frequency of the gaussian noise that i have added, plz do reply

--[[ ]]--