Technical discussion about Matlab and issues related to Digital Signal Processing.
|
Hi, Can anybody please tell me how to set up the sampling freq for a combined filters. The sampling freq for the input signal to the first filter h1 is 1.5Mhz, the output of the first filter is then downsampled to 96khz and feed into the second filter h2. h12 is the convolution of h1*h2. To plot the freq response of h12 with freqz, what is the sampling freq to use? freqz(h12,1,2048,'whole','fs?????') Thank you, EngGan |
|
|
|
You cannot convolve the two filters because their input rates are not equal. You can: 1. Multiply the real-frequency responses together, H12(f) = H1(f)*H2(f) = H1(w*1.5e6/2/pi)*H2(w*96e3/2/pi); or 2. Upsample h2 (the time-domain impulse response) from 96kHz to 1.5MHz, then convolve h12 = conv(h1,h2), then use freqz with 1.5MHz as the sample rate. For #1, f is the actual hertz, and w is the "digital angular frequency", i.e., w at Nyquist = pi. Sincerely, Glen Ragan -----Original Message----- From: egan_nc [mailto:] Sent: Tuesday, August 05, 2003 3:34 PM To: Subject: [matlab] sampling freq for combined filter Hi, Can anybody please tell me how to set up the sampling freq for a combined filters. The sampling freq for the input signal to the first filter h1 is 1.5Mhz, the output of the first filter is then downsampled to 96khz and feed into the second filter h2. h12 is the convolution of h1*h2. To plot the freq response of h12 with freqz, what is the sampling freq to use? freqz(h12,1,2048,'whole','fs?????') Thank you, EngGan Yahoo! Groups Sponsor ADVERTISEMENT <http://rd.yahoo.com/M=251812.3170658.4537139.1261774/D=egroupweb/S=1705 083376:HM/A=1693353/R=0/SIG=11t71ok4g/*http://www.netflix.com/Default?mq so=60178294&partid=3170658> click here <http://us.adserver.yahoo.com/l?M=251812.3170658.4537139.1261774/D=egrou pmail/S=:HM/A=1693353/rand=884230221> _____________________________________ /groups.php3 > . |