⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 r_cos_p.m

📁 Codes for expander, raise cosine filter and text2binary conversion.
💻 M
字号:
%% 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -