Eee 309project
2
clc N1=29000; N2=31000; n=N2-N1; [y,Fs]=wavread('my tone',[N1 N2]); Fs %a=wavread('atik') %figure %plot(a) subplot(2,1,1);plot((0:n)/Fs,y(:,1)); xlabel('Time') Yxx=xcorr(y(:,1),y(:,1)); t=(-n:n)/Fs; subplot(2,1,2);plot(t,Yxx) xlabel('Time')
description
Signal processing
Transcript of Eee 309project
clc
N1=29000;
N2=31000;
n=N2-N1;
[y,Fs]=wavread('my tone',[N1 N2]);
Fs
%a=wavread('atik')
%figure
%plot(a)
subplot(2,1,1);plot((0:n)/Fs,y(:,1));
xlabel('Time')
Yxx=xcorr(y(:,1),y(:,1));
t=(-n:n)/Fs;
subplot(2,1,2);plot(t,Yxx)
xlabel('Time')165.51hz