?? hadxcorr.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 + -