arpit01

Cross Correlation

Nov 28th, 2018
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. clc
  2. close all
  3. clear all
  4. x=[1 4 5 6 0 0 0]
  5. h=[8 6 3 1 0 0 0]
  6. for i=1:7
  7. y(i)=0
  8. for j=1:4
  9. if(i-j+1>0)
  10. y(i)=y(i)+x(j)*h(i-j+1)
  11. else
  12. end
  13. end
  14. end
  15. stem(y)
Add Comment
Please, Sign In to add comment