r_cos_p.m
来自「Codes for expander, raise cosine filter 」· M 代码 · 共 18 行
M
18 行
%% RAISED-COSINE PULSE: h=r_cos_p(N,L,alpha)% This function generates a raised cosine pulse of length N+1. % There are L samples per symbol period.% alpha is the roll-off factor.%function h=r_cos_p(N,L,alpha)t=[-N/2:1:N/2]/L;h=zeros(size(t));for k=1:length(t) if (1-(4*alpha^2)*t(k)^2)==0 h(k)=pi*alpha*sin(pi*alpha*t(k))/((8*alpha^2)*t(k)); else h(k)=cos(pi*alpha*t(k))/(1-(4*alpha^2)*t(k)^2); endendh=h.*sinc(t);h=h';
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?