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

📄 hadxcorr.m

📁 自适应滤波原理_西蒙.赫金_Matlab_源代码 希望能够对学习自适应滤波技术的朋友有所帮助
💻 M
字号:
%-------------------------------------------------------------
%  Compute cross-correlation of two oversampled Walsh-Hadamard
%  functions.
%-------------------------------------------------------------

%--- compute hadamard sequences of length 2^7 ---
H = hadamard(128);
h1 = H(63,:);
h2 = H(64,:);

%--- oversample by 4 ---
osh1 = ones(4,1)*h1;
osh1 = osh1(:);
osh2 = ones(4,1)*h2;
osh2 = osh2(:);


%--- compute cross-correlation ---
h12 = xcorr(osh1,osh2);
plot([-511:511],abs(h12)/512); grid on
axis([-500 500 0 1])
ylabel('Normalized Cross-correlation')
xlabel('Delay(samples)')
    

⌨️ 快捷键说明

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