Digital Signal Processing (DSP)
Aug 20th, 2006 by AhYap
Found a lot of old files in my computer. One of them being a coursework for my Digital Signal Processing (DSP). This is the subject that I’ve dropped along with my 4 housemates which end up that 5 of us have to extend for another semester! Totaled 4 and a half years in UTM. But then life is really good in the last semester. We have 2 weekdays and 5 weekends as we only need to go to class for 2 days a week.
I remembered I got an A for this subject. But then, when I found this in one of my file, I don’t have a clue what are they!
a. FIR filter using Hamming Window
» b = fir1(180, [800]/4000, hamming(181));
» [h,f] = freqz(b, 1, 1000, 8000);
» subplot(211), plot(f, abs(h)), grid, xlabel(‘frequency’), ylabel(‘magnitude’);
» subplot(212), plot(f, unwrap(angle(h))), grid, xlabel(‘frequency’), ylabel(‘phase’);FIR filter using Boxcar Window
» b = fir1(180, 800/4000, boxcar(181));
» [h,f] = freqz(b, 1, 1000, 8000);
» subplot(211), plot(f, abs(h)), grid, xlabel(‘frequency’), ylabel(‘magnitude’)
» subplot(212), plot(f, unwrap(angle(h))), grid, xlabel(‘frequency’), ylabel(‘phase’)b. Butterworth Filter
» [b,a] = butter(24, 800/4000);
» [h,f] = freqz(b, a, 1000, 8000);
» subplot(211), plot(f, abs(h)), grid, xlabel(‘frequency’), ylabel(‘magnitude’)
» subplot(212), plot(f, unwrap(angle(h))), grid, xlabel(‘frequency’), ylabel(‘phase’)c. Chebyshev Filter
» [b,a] = cheby1(10, 0.5, 800/4000);
» [h,f] = freqz(b, a, 1000, 8000);
» subplot(211), plot(f, abs(h)), grid, xlabel(‘frequency’), ylabel(‘magnitude’)
» subplot(212), plot(f, unwrap(angle(h))), grid, xlabel(‘frequency’), ylabel(‘phase’)
Graduated for almost 4 years now. And it is enough to erase almost everything that I have learned in my university. Time flies. I do miss my U time a lot. Hanging around mamak every night, driving to JB for shopping centers, movies and lots of food!, playing StarCraft with my housemate, clubbing in some cheaplak pub, walk around the dirty JB beach, sleep on the streetway of Orchart Road on Christmas, vacation at the Kukup fisherman village, keep checking the Bumiputra ATM to see if PTPTN has deposit money to us… life is so good when we are still students.
Subscribe to My Blog in a Feed Reader or simply
Subscribe by Email