?? correlate.m
字號:
% 定義非周期相關(guān)函數(shù),t值可以為負(fù)值
function r=correlate(a,b,t)
n=length(a);
h=0;
if (t>=0)
for i=1:n-t
h1=a(i)*conj(b(i+t));
h=h+h1;
end
else
for i=1:n+t
h1=conj(b(i))*a(i-t);
h=h+h1;
end
end
r=h;
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -