📄 createpulsefilter.m
字号:
function [pulseFilt,delay] = CreatePulseFilter(fs,fd)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This is a utility function that creates the pulse shaping filter.
% The filter is assumed to have a group delay of 3 symbol periods,
% it's region of support is therefore 6 symbol periods, symmetrical
% about it's center. The rolloff factor, beta, is assumed to be 0.5.
%
% fs = sampling frequency
% fd = symbol frequency
% pulseFilt = fir coefficients
% delay = group delay given in number of symbol periods
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
delay = 3;
r = 0.5;
pulseFilt = rcosine(fd,fs, 'fir/sqrt',r,delay);
pulseFilt = pulseFilt/(sqrt(pulseFilt*pulseFilt'));
return
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -