Jan 1, 2011 #1 D dorome Newbie level 1 Joined Jan 1, 2011 Messages 1 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,290 plzzzzzz help me i dont now what its wrong in my m file ///////////////////////////////////////// [x,fs,n]=wavread('NoisySignal.wav'); figure(1) plot(x) Ts=1/fs; y=fft(x); y=Ts*fftshift; f=-fs/2:fs/length:fs/2-fs/length; figure(2) plot(f,abs ) x1=.4*(hardlim(f+3050))-.4*(hardlim(f+2950)); figure(3) plot(f,x1) x2=.4*(hardlim(f+950))-.4*(hardlim(f+1050)); figure(4) plot(f,x2) x3=.4*(hardlim(f-(950)))-.4*(hardlim(f-(1050))); figure(5) plot(f,x3) x4=.4*(hardlim(f-(2950)))-.4*(hardlim(f-(3050))); figure(6) plot(f,x4) e=x1+x2+x3+x4; r=y'; z=r.*e; figure(7) plot(f,z) yy=z-r; yt=ifft(yy); yt=ifftshift(yt); f=-fs/2:fs/length:fs/2-fs/length; figure(8) plot(f,yy) sound(yt,f)
plzzzzzz help me i dont now what its wrong in my m file ///////////////////////////////////////// [x,fs,n]=wavread('NoisySignal.wav'); figure(1) plot(x) Ts=1/fs; y=fft(x); y=Ts*fftshift; f=-fs/2:fs/length:fs/2-fs/length; figure(2) plot(f,abs ) x1=.4*(hardlim(f+3050))-.4*(hardlim(f+2950)); figure(3) plot(f,x1) x2=.4*(hardlim(f+950))-.4*(hardlim(f+1050)); figure(4) plot(f,x2) x3=.4*(hardlim(f-(950)))-.4*(hardlim(f-(1050))); figure(5) plot(f,x3) x4=.4*(hardlim(f-(2950)))-.4*(hardlim(f-(3050))); figure(6) plot(f,x4) e=x1+x2+x3+x4; r=y'; z=r.*e; figure(7) plot(f,z) yy=z-r; yt=ifft(yy); yt=ifftshift(yt); f=-fs/2:fs/length:fs/2-fs/length; figure(8) plot(f,yy) sound(yt,f)