EE 547 Project #1 Fall 1999
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
delta1 = [1];
).
Create a square wave sq1
of length 55, period 5, and height 1
that is on for 3 samples per period.
sq1
and delta1
. Plot the result using
stem
.
delta2 = [1
zeros
(1,9)];
).
Convolve delta2
with sq1
and plot the result. Explain any
differences that you observe.
delta2
and sq1
in the conv
command, and plot the result. Does this make any difference? Explain.
hn2
that is two points
long (hn2 = [
ones
(1,2)];
).
Convolve hn2
with sq1
. Increase the length of the impulse
response to 5, 9, and 15. What happens to the result as the length of the
impulse response is increased? Explain.
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.
Do not include more than four plots in your report.
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 salient features of the unincluded plots.
For further help: