CIC decimator filter impulse response check

Status
Not open for further replies.

ali kotb

Member level 3
Joined
Feb 11, 2012
Messages
61
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Visit site
Activity points
1,732
hello all ,
I have a problem when designing CIC filter on matlab
here is the code :

r=64;
m=1;
n=3;
IFL = 0; % Input fraction length
CIC = mfilt.cicdecim(r,m,n);
CIC.InputFracLength = IFL;

I use fvtool to check the impusle response and I got figure 1 attached ,

I also used the following code as another check for impulse response (w/o using fvtool):
x= [1 zeros(1,511-1)];
d=filter(CIC,x);
stem(d);
and I got response of fig.2 which is completely different from fig.1

what is the problem ?

Regards,
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…