electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

FIR Filter in Matlab


Post new topic  Reply to topic    EDAboard.com Forum Index -> Digital Signal Processing -> FIR Filter in Matlab
Author Message
dav_mt



Joined: 12 Oct 2006
Posts: 11
Location: Malta


Post30 Nov 2006 0:34   

FIR Filter in Matlab


I just designed an FIR filter in Matlab, and saw the impulse response. I obtained a low pass filter. Up to now there were no problems. I read the cut-off frequency(0.144cycles/sample) and had 2 null frequencies at 0.325cycles/sample and 0.5cycles/sample.

Then I inputted a discrete sine wave block(with sampling frequency = 12kHz) instead of the impulse and after trying several frequencies, gain and phase were observed from matlab scope and the frequency and phase spectrum were plotted. Please note that in order to read the gain and phase blocks i used a filter to reconstruct my signal and have readable gain and phase values (input vs output)

I did thesame procedure for a sampling frequency of 20khz, yet in the fs = 12khz case i found the response to be very similar to that of the impulse response with obviously a different cut off frequency (12k * 0.144cycles/sample) and heavy attenuation at the null frequencies just like the impulse input case. However I did not observe any attenuation at fs = 20khz at the null frequncies. Am i doing a Matlab mistake or is there a theoretical explanation for this difference ?

Obviously in both cases two low pass filters were observed whose cut-off depended on fs, using f0/fs = k/N = f(cycles/sample)
Back to top
chaitubek



Joined: 01 Oct 2006
Posts: 8


Post30 Nov 2006 11:12   

Re: FIR Filter in Matlab


can u send me ur matlab code.
my email chaitubek(at)yahoo.co.in
thank u,.. plz.. its urgent
Back to top
Google
AdSense
Google Adsense




Post30 Nov 2006 11:12   

Ads




Back to top
dav_mt



Joined: 12 Oct 2006
Posts: 11
Location: Malta


Post30 Nov 2006 12:04   

FIR Filter in Matlab


oh i forgot to mention system is implemented in simulink and parameters obtained are plotted using matlab, and putting my question in an easier way,

What is the difference between inputting a sine wave sampled at 12k and 20k, in the input of an FIR low pass filter (apart from higher cut-off and null frequencies)?
Back to top
Robinenemy



Joined: 10 Jul 2006
Posts: 119
Helped: 15


Post01 Dec 2006 8:45   

Re: FIR Filter in Matlab


I think by increasing the sample rate we have better resolution of the signal on the Scope in the Simulink.

Regards

Robin
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Digital Signal Processing -> FIR Filter in Matlab
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Urgent: half band FIR filter and low pass FIR filter (1)
Mth band FIR Filter Desing in MATLAB (3)
Matlab code for FIR filter design (18)
What is the purpose of interpolator filter (FIR filter) ? (2)
Basic FIR Filter Design- calculating filter coeffecients (2)
Fir filter !!!!!! (3)
FIR filter? (3)
Fir filter tap (3)
Zeros in FIR filter (4)
FIR lattice filter (2)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS