Oct 15, 2006 #1 M martinisonline Member level 2 Joined Apr 24, 2005 Messages 47 Helped 2 Reputation 4 Reaction score 2 Trophy points 1,288 Location Portugal Activity points 1,792 how can i represent on matlab this equation: h[n]=d[n]+2*d[n-2]-2*d[n-3] d[n] is the unit impulse sequence
how can i represent on matlab this equation: h[n]=d[n]+2*d[n-2]-2*d[n-3] d[n] is the unit impulse sequence
Oct 15, 2006 #2 A alvarorahul Advanced Member level 4 Joined Apr 13, 2005 Messages 110 Helped 6 Reputation 12 Reaction score 1 Trophy points 1,298 Activity points 2,063 u can do it as shown below % declare d % declare value of n % for example d = [ 4, 3, 6, 3, 2, 3, 8, 2, 7, 4] for n=4:10 h = d + 2*d(n-2) - 2*d(n-3); end
u can do it as shown below % declare d % declare value of n % for example d = [ 4, 3, 6, 3, 2, 3, 8, 2, 7, 4] for n=4:10 h = d + 2*d(n-2) - 2*d(n-3); end