Apr 18, 2014 #1 R rizwan12 Junior Member level 1 Joined Aug 20, 2013 Messages 19 Helped 1 Reputation 2 Reaction score 1 Trophy points 3 Activity points 116 when i run this code there is an error of index of element to remove exceeds matrix dimension.anyhelp is highly appreciated Code: load x %%%% load ecg signal%%%%%% plot(x) a=x./100 figure plot(a) refer=randn(1,length(a)) %%%% refrence noise signal %%%%%% b=10.*refer c=a+b'; %%%% corrupted signal %%%%%% plot(c) mu=0.005 ha=adaptfilt.lms(32,mu) [y,e]=filter(ha,b',a) Last edited by a moderator: Apr 18, 2014
when i run this code there is an error of index of element to remove exceeds matrix dimension.anyhelp is highly appreciated Code: load x %%%% load ecg signal%%%%%% plot(x) a=x./100 figure plot(a) refer=randn(1,length(a)) %%%% refrence noise signal %%%%%% b=10.*refer c=a+b'; %%%% corrupted signal %%%%%% plot(c) mu=0.005 ha=adaptfilt.lms(32,mu) [y,e]=filter(ha,b',a)