MATLAB编程实现升余弦滤波器function [g_T]= rrc_filter(alpha, filterOrder, N, T)
%alpha为滚降系数(本函数用于升余弦滤波器系数计算,使用方便快捷。
%filterOrder为滤波器阶数
%N为每符号采样点数
%T
% alpha = 0.24;
% filterOrder = 63; %
% T = 1;
% N = 4; %sample point number per symbol
n = -(filterOrder - 1)/2:1:(filterOrder - 1)/2;
for i = 1:length(n)
g_T(i) = 0;
for m = -(filterOrder - 1)/2:1:(filterOrder - 1)/2
% g_T(i) = g_T(i) + sqrt(Xrc(4 * m/(filterOrder * T), alpha, T)) * exp(j * 2 * pi * m * (n(i)) / filterOrder);
g_T(i) = g_T(i) + sqrt(xrc(N*m/(filterOrder* T), alpha, T)) * cos(2 * pi * m * (n(i)) / filterOrder);
end
2021-03-16 11:10:55
1KB
RCOS
1