daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest May 16th, 2018 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function corr = Mcorr(sig1, sig2, length_sig, length_c)
  2. if length_c > length_sig
  3.     corr=0;
  4.     return;
  5. end
  6. for k = 1:length_c
  7.     corr(k) = 0;
  8.     for m = 1:length_sig - k
  9.         corr(k) = corr(k) + sig1(m) * sig2(m+k-1);
  10.     end
  11.     corr(k) = corr(k)/length_sig; %normirovka
  12. end
RAW Paste Data
Top