CA 2 Questions

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

This preview shows pages 1–2. Sign up to view the full content.

1 ECE 408 COMPUTER ASSIGNMENT #2 AUDIO SIGNAL PROCESSING 2 1. Read a short wav file into MATLAB and pass it through a digital lowpass filter with transfer function ( 29 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: %File Name: asp2LPF.m %Written by Dr. James S. Kang, ECE Department, Cal Poly Pomona. %Audio signal processing 2. Using wav file. % %Reading wav file % [x,fsampling,bits]=wavread('windwing.wav'); disp('sampling rate = '); disp(fsampling); disp('number of bits per sample = '); disp(bits); wavplay(x,fsampling); pause(5); X=fft(x); plot(abs(X)); grid; title('Spectrum of the Input Signal'); % %Passing the input through LPF. % a=[1 -0.9];

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 08/09/2010 for the course ELECTRICAL ECE 408 taught by Professor Jameskang during the Summer '10 term at Cal Poly Pomona.

### Page1 / 3

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

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

View Full Document
Ask a homework question - tutors are online