Advertisement
szymcio93

3

Oct 6th, 2015
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1.  
  2.  
  3. load('adsl_x.mat');
  4.  
  5.  
  6.  
  7. for i=545:2049
  8.  
  9. prefix=x(i-544:i-512);
  10.  
  11. frame=x(i-32:i);
  12.  
  13. z(i)=max(abs(xcorr(prefix,frame,'coeff')));
  14.  
  15. end
  16.  
  17.  
  18. plot(z);
  19.  
  20. k=1;
  21.  
  22.  
  23. for i=1:length(z)
  24.  
  25. if(z(i)>0.96) wyn(k)=i-544;
  26.  
  27. k=k+1;
  28.  
  29. end
  30.  
  31. end
  32.  
  33.  
  34. wyn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement