EE 643 Project #1 Spring 1999
This project will investigate methods for changing the sampling rate
in the discrete-time domain.
Getting Started
user-setup
and select math/matlab/5.3
.
.cshrc
file. In the personal customization area,
add the line:setenv MATLABPATH /home/sigproc/sjreeves/matlab/teaching
% source .cshrcat the command line of the window in which you are working.
matlab
at the command line.
demo
and then clicking on ``Mathematical examples''
and then ``Fourier Series''. Pay attention to the text that is generated
in the window. This text shows the Matlab commands that were used to
generate the examples. You may also wish to explore some of the other
examples by clicking on different buttons.
intro
to get an idea of the basic capabilities of Matlab.
doc
at any time to get a hypertext version of
the Matlab Reference Guide or help <cmd>
to get help on specific
commands.
Exercises
Plot
the magnitude (use
abs
of the DFT (use
fft
Is this what you would expect? Explain.
Decimate
the discrete signal by a factor of 2.
View the DFT magnitude of the result, and explain what you see.
/opt/demo/audio/feel-good.au
using
auread
Downsample by a factor of 4. Decimate by a factor of 4.
Compare the original DFT magnitude to the DFT magnitudes of the two
modified signals.
interp
) the downsampled and the decimated audio
signals so that they have the same sampling rate as the original.
Listen to the original and the two modified signals using
sound
NOTE: If you can't listen on the workstation where you are, go to a PC
being used as an X server. Save the file using
wavwrite
, then click on
the file in Windows Explorer to listen on the PC.
Describe and explain the differences in what you hear.
filter
function, and the fir1
function.
filter
function, and the fir1
function.
my_resample(x,L,M)
. Resample the audio signal at a
new sampling rate that is 3/2 the original rate, using your m-file
as well as the Matlab command resample
. Compare the sound of the
two results as well as the execution speed of the two resampling routines
(using
cputime
Speculate on any differences you observe.
Write a short report describing your findings. The report should
contain a concise description of your results.
Include listings of your function. Be sure to answer all questions.
You are not expected to include in
the report all plots which you were required to do; instead, you should
summarize in your report the important features of the unincluded plots.
For further help: