cpfskdemod_new.asv

来自「一个仿真测试4FSK信号的matlab环境GUI程序。可以查看基带IQ波形、眼图」· ASV 代码 · 共 26 行

ASV
26
字号
function z = cpfskdemod_new(y,M,h,nSamp,Fd)
% Continous phase FSK demodulation program.
%       y : the the modulation baseband complex signal
%       M : M-array;
%       h : modulation index;
%   nSamp : samples per symbol;
%      Fd : symbol rate

%   written by zhengliangde, hyt CO.,LTD.
%   contact me : harlemon@126.com
%   date: 2006.3.20
Fs = nSamp*Fd;
[nRow,nChan] = size(y);
if nChan~=1
    error('This program could not process multiple channel signal.');
    return
end

samptime = 1/Fs;

z = zeros(nRow/nSamp,1);

% time vector for one symbol
t = [0:1/Fs:(nSamp-1)/Fs]';
phase = [-(M-1):2:(M-1)]*pi*h*Fd;

⌨️ 快捷键说明

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