MATLAB互相关程序
clcA=load('0.2.txt');t=[0.005:0.005:50];a=A(1:10000,1);a=-0.21229+0.05394.*a;m=mean(a...
clc
A=load ('0.2.txt');
t=[0.005:0.005:50];
a=A(1:10000,1);
a=-0.21229+0.05394.*a;
m=mean(a);
x1=a-m;
b=A(1:10000,2);
b=-0.10254+0.05321.*b;
n=mean(b);
x2=b-n;
corrxy=xcorr(x1,x2,'coeff');
subplot(3,1,1),plot(t,x1);
subplot(3,1,2),plot(t,x2);
subplot(3,1,3),plot(t,corrxy);
我想求得x1和x2的在时域范围内的互相关函数
可程序老是提示最后一步错误
请高手指点 展开
A=load ('0.2.txt');
t=[0.005:0.005:50];
a=A(1:10000,1);
a=-0.21229+0.05394.*a;
m=mean(a);
x1=a-m;
b=A(1:10000,2);
b=-0.10254+0.05321.*b;
n=mean(b);
x2=b-n;
corrxy=xcorr(x1,x2,'coeff');
subplot(3,1,1),plot(t,x1);
subplot(3,1,2),plot(t,x2);
subplot(3,1,3),plot(t,corrxy);
我想求得x1和x2的在时域范围内的互相关函数
可程序老是提示最后一步错误
请高手指点 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询