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

📄 cp0804_corrsyn.m

📁 < 超宽带无线电基础>>的第八章原代码,主要用于超宽带无线电信号波形的产生信道估计扩频通信等等,内容非常丰富.
💻 M
字号:
%
% Function 8.15: "cp0804_corrsyn"
%
% Implements the correlation an input vector (signal)
% with a reference vector (template)
% 'fc' represents the sampling frequency
% 
% The function returns the output of the correlator (C)
%
% Programmed by Guerino Giancola
%

function [C] = cp0804_corrsyn(signal,template,fc)

% ----------------------
% Step One - Correlation
% ----------------------

dt = 1 / fc;

for s = 1 : length(signal)
    
    stmp = cp0804_signalshift(template,fc,s*dt);
    % shifted templated waveform
    
    C(s) = sum(signal.*stmp);
    % value of the correlation
    
end % for 1 : length(signal)

⌨️ 快捷键说明

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