Homework 6, ECE438, Fall 2010, Prof. Boutin
Due in class, Friday October 15, 2010.
The discussion page for this homework is here. Feel free to share your answers/thoughts/questions on that page.
Question 1
Consider the signal
x[n] = sin(ω1n) + ksin(ω2n),
where k is a real valued constant.
a) Write a program that will
- Plot x[n].
- Compute the N point DFT X[k]. (Yes, you may use FFT routines.)
- Plot the magnitude of X[k].
Turn in a print out of your code.
b) Run your program and generate outputs for the cases shown below.
Case | N | ω1 | k | ω2 |
---|---|---|---|---|