필터 지우기
필터 지우기

Equivalence/difference between firrcos and rcosdesign

조회 수: 11 (최근 30일)
Christoph
Christoph 2015년 5월 26일
Hi everybody,
I am currently working with legacy code, where firrcos was used to create a root-raised cosine filter. MATLAB suggest to use rcosdesign instead, as firrcos is deprecated. Looking for the equivalence of those two, I found a Mathworks document (<http://cn.mathworks.com/help/pdf_doc/comm/rn.pdf>) where they state the following code to generate two equal filters:
N = 16;
Fc = 1000;
R = 0.25;
Fs = 8000;
b2 = firrcos(N,Fc,R,Fs,'rolloff','sqrt');
b2n = rcosdesign(R, N/(Fs/Fc/2), Fs/Fc/2, 'sqrt');
b2n = b2n / max(b2n) * ((-1 ./ (pi.*(Fs/Fc/2)) .* (pi.*(R-1) - 4.*R)));
My question to you now is the following: Can anybody explain me why the normalization for b2n is necessary (the very last operation in the code above).
Thanks

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with DSP System Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by