Shekhar777

MATLAB LAB2 EX2(e)

Oct 14th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.49 KB | None | 0 0
  1. Exercise 2 (Convolution Sum) Convolution of two infinite length sequences x[n] and h[n] is given by
  2. y[n] = x[n] ∗ h[n] = summation x[k]h[n − k] ,   (summation limit ∞ upper side & k=−∞ lower side)
  3.  
  4. e) Perform the convolution using the ‘mconv’ function for the input sequence x[n] and system impulse
  5. response h[n]
  6. x[n] = [3, 11, 7,~0, −1, 4, 2]
  7. h[n] = [2,~3, 0, −5, 2, 1]
  8.  
  9. a = [3,11,7,0,-1,4,2]
  10. ax= [-3;3]
  11. b= [2,3,0,-5,2,1]
  12. bx = [-1:4]
  13. [v,z]= mconv(a,ax,b,bx)
  14. stem(z,v)
Add Comment
Please, Sign In to add comment