MATLAB rcosfir和rcosdesign

1、升余弦滤波器函数rcosfir和rcosdesign

     升余弦滤波器函数可用作发送端的成型滤波器。升余弦滤波器的主要参数是其滚降系数,滚降系数直接决定了滤波器的带宽。理想的升余弦滤波器由无限多个抽头。因此,实际上的升余弦滤波器是加窗的。窗的长度由Span Symbols特性来控制。升余弦滤波器用在信号上采样后的脉冲成型,我们也需要指定上采样倍数。

1) 升余弦滤波器函数rcosfir在MATLAB软件R2013b中可用,解释如下

 b = rcosfir(R,n_T,rate,T) designs a raised cosine filter and returns a vector b of length(n_T(2) - n_T(1))*rate + 1. The filter's rolloff factor is R, a real number between 0 and 1, inclusive. T is the duration of each bit in seconds. n_T is a scalar or a vector of length 2. If n_T is specified as a scalar, the filter length is 2*n_T+1 input samples. If n_T is a vector, it specifies the extent of the filter. In this case, the filter length is n_T(2)-n_T(1)+1 input samples (or (n_T(2)-n_T(1))*rate+1 output samples).

2)函数rcosfir在MATLAB软件R2016b中无法使用,取而代之的是rcosdesign函数

b = rcosdesign(beta,span,sps,shape)返回系数b,对应于一个滚降系数为beta的均方根升余弦FIR滤波器。滤波器截断为span个symbols,每个symbol包含sps个采样点。滤波器的阶数sps*span必须是偶数。滤波器能量为1。返回一个均方根升余弦滤波器(shape为'sqrt')或者一个升余弦滤波器(shape为'normal')。

 

3)用法对比

rcosfir使用如下:

n_T=[-2 2];

rate=Fs/ps;

T=1;

Shape_b = rcosfir(a,n_T,rate,T,'sqrt');

 

rcosdesign使用如下:

n_T=5;

rate=Fs/ps;

Shape_b = rcosdesign(a,n_T,rate,'sqrt');

 

详细内容请参考:

1、升余弦滤波器MATLAB分析


版权声明:本文为kpsuwen原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。