17.01.2015 Views

Basic Digital Audio Effects

Basic Digital Audio Effects

Basic Digital Audio Effects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FIR Comb Filter MATLAB Code<br />

fircomb.m:<br />

CM0268<br />

MATLAB<br />

DSP<br />

GRAPHICS<br />

369<br />

x=zeros(100,1);x(1)=1; % unit impulse signal of length 100<br />

g=0.5; %Example gain<br />

Delayline=zeros(10,1); % memory allocation for length 10<br />

for n=1:length(x);<br />

y(n)=x(n)+g*Delayline(10);<br />

Delayline=[x(n);Delayline(1:10-1)];<br />

end;<br />

1<br />

◭◭<br />

◮◮<br />

◭<br />

◮<br />

Back<br />

Close

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!