📄 croscor.m
字号:
function out=croscor(in1,in2,maxshft);
%
% Computes cross correlation vector
% by shifting in2 in 1 timestep
% steps up to a maximum timeshift
% of "maxshft"
%
% Call: out=croscor(in1,in2,maxshft);
%
out=[];
for i = 0:maxshft
temp=[];
temp=timeshft([in1 in2],[0 i]);
c=corrcoef(temp(:,1),temp(:,2));
out(i+1,1)=c(2,1);
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -