CA 1 Questions - ECE 408 COMPUTER ASSIGNMENT #1 AUDIO...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 408 COMPUTER ASSIGNMENT #1 AUDIO SIGNAL PROCESSING 1 1. Generate 16384 samples of random noise and pass it through a digital lowpass filter with transfer function () 1 9 0 1 1 10 1 = z . z H . (a) Play the sound before and after the filter. (b) Plot the waveforms in the time domain before and after the filter. (c) Plot the spectrums (fft magnitude) before and after the filter. (d) Plot the impulse response, magnitude response, phase response, pole-zero diagram of the filter. Hint: % %Generation of random noise. % N=16384; x=2*(rand(1,N)-0.5); soundsc(x) pause(5) x1=x(1:100); plot(x1);grid;title('Input Signal: Random Noise'); figure; X=fft(x); plot(abs(X)); grid; title('Spectrum of the Input Signal'); % %Passing the random noise through LPF. % a=[1 -0.9]; b=[1/10]; y=filter(b,a,x); soundsc(y); [h,t]=impz(b,a); %h=impulse response. N1=size(h,1); n=1:N1; figure; stem(n-1,h); grid; title('Impulse Response of LPF'); figure; y1=y(1:1024); plot(y1);grid;title('Output Waveform of the LPF'); figure; 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
[H,w]=freqz(b,a,100); %H=frequency response. plot(w/pi,abs(H)); grid; title('Magnitude Response of LPF');
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

CA 1 Questions - ECE 408 COMPUTER ASSIGNMENT #1 AUDIO...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online