matlab - Convolution of impulse responses of different sampling rates -


i building cascade of filters (a cic decimator followed low pass filter) , interested in frequency , impulse response.

knowing cic decimator has similar impulse response moving average filter (ma), calculating impulse response of cic decimator in following way

%parameters of cic d=300; %deci factor m=1;   %delays of comb stages=3;  % impulse response estimated based on ma n=m*d; b=ones(1,n); b2=conv(b,b); b3=conv(b2,b); b_cic=b3*n^(-stages); % fir coefs , impulse response 

let sampling rate of input signal 600khz, mean output of cic decimator @ 2khz. lets assume coefficient of fir low pass filter follows

b_lp=[b_1 b_2 b_3 b_4 b_5]; % values not important right  

so here comes question, estimate filter response of cascade multiplying frequency responses (i know have take account different sampling rates , length of responses):

[hcic,fcic]=freqz(b_cic,1,300*1000,fs); [hlp,flp]=freqz(b_lp,1,1000,fs/300); 

however, know whether possible convolute impulse responses in time domain taking downsampling account? example like:

b_cas = con(b_cic,b_lp); % <--- know not work due different sampling rates 

so far not able find using google or here.

i aware use build-in matlab function different filters , cascade them using

dsp.filtercascade 

you need @ the frequency response of both filters @ input rate (600 khz). if upsample impulse response of fir low pass filter input rate of cic demicator , convolve 2 should combined impulse response of cascade of 2 filters together.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

Why does math.random(999999999999) returns 1 in Lua? -