利用matlab求两个信号的延迟

fs=10e4; T=1/fs; L=1000; t=(0:L-1)*T; f0=10e3; x=sin(2*pi*f0*t); y=x(100:200); z=x(103:203); %delay=xcorr(y,y,'coeff'); [delay,zuobiao]=xcorr(y,z,'coeff'); figure(1) plot(y); hold on plot(z); figure(2
相关文章
相关标签/搜索