Has the algorithm for fdesign changed in Signal Processing Toolbox 6.13 (R2010a) as compared to the previous versions?
이전 댓글 표시
I am using fdesign.decimator to design an equiripple filter with given specifications. I have recently upgraded from R2007b to R2010a. In R2007b, this code output a filter with 89 coefficients, but the same code in R2010a results in a filter with 127 taps. This is breaking compatibility for my downstream code as I am using the filter and the signal output from the filter as a reference to compare with my filter code written in assembly. Compare the output generated by the following code in R2007a and R2010a:
Fpass = 3400; % Passband Frequency
Fstop = 4000; % Stopband Frequency Apass = 0.01; % Passband Ripple (dB) Astop = 80; % Stopband Attenuation (dB) Fs = 16000; % Sampling Frequency h = fdesign.decimator(2, 'Lowpass', 'fp,fst,ap,ast', Fpass, Fstop, ... Apass, Astop, Fs); Hd = design(h, 'equiripple', ... 'FilterStructure', 'firdecim', ... 'MinPhase', true, ... 'MinOrder', 'any', ... 'StopbandShape', 'flat');
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Filter Design에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!