关注
MATLAB rcosfir和rcosdesign 原创
2021-03-22 19:53:57
2点赞
胡颜
码龄8年
关注
升余弦滤波器函数可用作发送端的成型滤波器。升余弦滤波器的主要参数是其滚降系数,滚降系数直接决定了滤波器的带宽。理想的升余弦滤波器由无限多个抽头。因此,实乎基际上的升余弦滤波器搜顷裂是加窗的。窗的长度由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')。
复制你的代码,在Matlab2013b运行,无错误,可以得到如下结果:让野
建唯滑扒议你,新指昌建一个文档,把代码复制到里面,然后保存,运行。
错误: 意外的 MATLAB 运算符。出现这种错误的可能是,n=1:length(a)前,有非法的字符存在,如全角字符。请你检查一下,n 前面的空格。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)