raised_cosine.m

来自「用Matlab实现空时分组编码对其MIMO系统性能进行分析得出理想的结果」· M 代码 · 共 50 行

M
50
字号
function h = raised_cosine(Q, b, trunc)%   function h = raised_cosine(Q, b, trunc)%%	Output:%	h           - Raised-cosine shaped pulseform.%   %   Input:%	Q           - Oversample-factor.%   b           - Beta, the roll-off factor. Set to 0.22 if not specified.%   trunc       - Decides how many periodes in raised-cosine before truncation.%   %   Short Theoretical Background for the Function:%%   The raised-cosine function is given by:%   x(t) = sinc(t/T)*cos(pi*Beta*t/T) / (1 - 4*Beta^2*t^2/T^2);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%% Function part of simulation for Space-Time%%% coding project, group Grey-2001.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   Author: Stefan Uppg錼d%   Date: 2001-04-06%   Version: 1.0%   Revision (Name & Date & Comment):%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%if nargin < 3  trunc = 5;endif nargin < 2  b = 0.22;end% The symbol time T is assumed to be unity.T = 1*Q;t = -trunc*Q:1:trunc*Q;h = ( cos(b*pi*t/T) .* sinc(t/T) ) ./ ...      (1-4*b^2*t.^2/T^2);% Normalizeh = h / sqrt(h*h');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?