Advertisement
vinay586

function of mconv

Oct 16th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.22 KB | None | 0 0
  1. a = [3,11,7,0,-1,4,2]
  2. ax= [-3:3]
  3. b= [2,3,0,-5,2,1]
  4. bx = [-1:4]
  5. [v,z]= mconv(a,ax,b,bx)
  6.  
  7.  
  8. function[y,ny] = mconv(x,nx,h,hx)
  9. nyb = nx(1)+ hx(1)
  10. nye = nx(length(nx))+ hx(length(hx))
  11. ny = [nyb:nye]
  12. y = conv(x,h)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement