自己变了一段求互功率谱的程序,能运行不知道对不对,图含义是啥
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%clc
clear
x0=load('2-1x.txt');%产生信号
x=x0(1:2000);
y0=load('5-1x.txt');%产生信号
y=y0(1:2000);
N=length(x);
fs=5000;
nfft=2000;
dt=1/fs; %采样时间间隔
t=(0:N-1)*dt; %产生时间序列
% 估计 x和y 的互功率谱;
=csd(x,y,N/4,fs,hamming(N/4),0,'mean');
pxy=20*log10(abs(pxy));
plot(w,pxy);%grid;
figure
等待老师解答
页:
[1]