(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[Category:2010 Fall ECE 438 Boutin]]
 
[[Category:2010 Fall ECE 438 Boutin]]
  
 +
----
 
== Solution to Q5 of Week 5 Quiz Pool ==
 
== Solution to Q5 of Week 5 Quiz Pool ==
 
----
 
----
Line 30: Line 31:
 
             <math> Z(e^{jw}) = X(e^{jwL}) \,\!</math>
 
             <math> Z(e^{jw}) = X(e^{jwL}) \,\!</math>
  
Therefore, the DTFT of <math>z[n]</math> is simply <math>X(e^{jw})</math> compressed in frequency by a factor of <math>L</math>.  
+
Therefore, the DTFT of <math>z[n]</math> is simply <math>X(e^{jw})</math> compressed in frequency by a factor of <math>L</math>.
  
Since <math>X(e^{jw})</math> has a period of <math>2\pi</math>, <math>Z(e^{jw})</math> will have a period of <math>2\pi/L</math>
+
<math> \Bigg( \text{But note that } z[n] = \left\{\begin{array}{ll}x[m]&n=mL \\ 0& n\neq mL\end{array} \right. \text{, where } m \text{ is an integer.} \Bigg) </math>
 +
 
 +
Since <math>X(e^{jw})</math> has a period of <math>2\pi</math>,  
 +
 
 +
    <math>Z(e^{jw}) \text{ will have a period of } \frac{2\pi}{L}. \,\!</math>
  
 
All the original information of <math>x[n]</math> will be contained in the interval  <math>[-\pi/L,\;\pi/L]</math>  of <math>Z(e^{jw})</math>
 
All the original information of <math>x[n]</math> will be contained in the interval  <math>[-\pi/L,\;\pi/L]</math>  of <math>Z(e^{jw})</math>
Line 40: Line 45:
 
Therefore, the cut-off frequency, <math>f_c</math> of the discrete-time low-pass filter (LPF) is <math>f_c=\frac{\pi}{L}</math>, in general.  
 
Therefore, the cut-off frequency, <math>f_c</math> of the discrete-time low-pass filter (LPF) is <math>f_c=\frac{\pi}{L}</math>, in general.  
  
For the case of our question (<math>L=2</math>), the cut-off frequency is <math>\frac{\pi}{2}</math>.
+
And the output <math>y[n]</math> will be the sequence of samples (discrete-time signal) sampled at the rate of <math>Lf_s</math> from the original continuous-time signal. 
 +
 
 +
(Note that <math>x[n]</math> was the sequence of samples (discrete-time signal) sampled at the rate of <math>f_s</math> from the original continuous-time signal.)
  
 +
* For the case of our question (<math>L=2</math>), the cut-off frequency is <math>\frac{\pi}{2}</math>.
 +
* Since <math>x[n]</math> was the discrete-time signal sampled at 2000 Hz, the output <math>y[n]</math> is the discrete-time signal sampled at the rate of 4000 Hz.
  
 
----
 
----

Latest revision as of 19:52, 20 September 2010



Solution to Q5 of Week 5 Quiz Pool


By Nyquist condition, the sampling frequency must be larger than the twice of maximum signal frequency, in order to avoid the aliasing when sampling.

$ \begin{align} x(t) &= \text{cos}(1000 \pi t) + \text{sin}(1500 \pi t) \\ &= \text{cos}(2\pi \times 500 t) + \text{sin}(2\pi \times 750 t) \end{align} \,\! $

Thus, it consists of two sinusoidal with frequencies equal to 500 Hz and 750 Hz, respectively.

Since the maximum frequency is 750 Hz, the sampling frequency must be greater than 1500 Hz, which is

$ F_s > 2\times 750 = 1500 \text{ Hz} \,\! $


Solution to Q6 of Week 5 Quiz Pool


Upsampling process.jpg

The above figure is the general upsampling process by a factor of $ L $, as you did in Lab 4.

The first upsampler inserts $ L-1 $ zeros in between each sample.

The frequency domain relationship betweeen a signal $ x[n] $ and its upsampled version $ z[n] $ can be shown to be the following,

           $  Z(e^{jw}) = X(e^{jwL}) \,\! $

Therefore, the DTFT of $ z[n] $ is simply $ X(e^{jw}) $ compressed in frequency by a factor of $ L $.

$ \Bigg( \text{But note that } z[n] = \left\{\begin{array}{ll}x[m]&n=mL \\ 0& n\neq mL\end{array} \right. \text{, where } m \text{ is an integer.} \Bigg) $

Since $ X(e^{jw}) $ has a period of $ 2\pi $,

    $ Z(e^{jw}) \text{ will have a period of } \frac{2\pi}{L}. \,\! $

All the original information of $ x[n] $ will be contained in the interval $ [-\pi/L,\;\pi/L] $ of $ Z(e^{jw}) $

Thus, the unwanted components in the intervals $ [-\pi,\;-\pi/L] $ and $ [\pi/L,\;\pi] $ needs to be filtered out.

Therefore, the cut-off frequency, $ f_c $ of the discrete-time low-pass filter (LPF) is $ f_c=\frac{\pi}{L} $, in general.

And the output $ y[n] $ will be the sequence of samples (discrete-time signal) sampled at the rate of $ Lf_s $ from the original continuous-time signal.

(Note that $ x[n] $ was the sequence of samples (discrete-time signal) sampled at the rate of $ f_s $ from the original continuous-time signal.)

  • For the case of our question ($ L=2 $), the cut-off frequency is $ \frac{\pi}{2} $.
  • Since $ x[n] $ was the discrete-time signal sampled at 2000 Hz, the output $ y[n] $ is the discrete-time signal sampled at the rate of 4000 Hz.

Back to Lab Week 5 Quiz Pool

Back to ECE 438 Fall 2010 Lab Wiki Page

Back to ECE 438 Fall 2010

Alumni Liaison

has a message for current ECE438 students.

Sean Hu, ECE PhD 2009