Line 29: | Line 29: | ||
==Part 2== | ==Part 2== | ||
− | Consider the non-periodic function | + | Consider the non-periodic function <math>f(t)=e^{-0.2t}*sin(10t)</math>. |
+ | |||
+ | [[Image:Nonperiodic_blaskows_ECE301Fall2008mboutin.jpg|frame|center|Non-periodic function <math>f(t)=e^{-0.2t}sin(10t)</math>.]] | ||
+ | |||
+ | If we run the following MATLAB code, we can shift it in several small increments and add it to itself to produce a function that approximates something periodic. Since we cannot add an infinite number of functions shifted an infinitely small amount, this approximation will work for our purposes. |
Revision as of 06:22, 10 September 2008
Part 1
Changing a Periodic Continuous Time Signal to a Non-Periodic Discrete Time Signal
One can take a signal that would be periodic in continuous time and turn it into a signal that is not periodic in discrete time. Consider the continuous time signal $ x(t)=sin(t) $. Plotting this signal yields a smooth waveform that repeats itself with period $ T=2\pi $.
Sampling this signal at every integer time yields something altogether different.
The new discrete time function looks like this on its own.
For the signal to be periodic, there must exist an integer N such that $ x[n]=x[n+N] $. For the signal defined as it is here, no such integer N exists.
Changing a Periodic Continuous Time Signal to a Periodic Discrete Time Signal
Suppose our sampling frequency, instead of being 1, was $ \frac{\pi}{8} $. Then the newly sampled function overlaid with the continuous function would look something like
Part 2
Consider the non-periodic function $ f(t)=e^{-0.2t}*sin(10t) $.
If we run the following MATLAB code, we can shift it in several small increments and add it to itself to produce a function that approximates something periodic. Since we cannot add an infinite number of functions shifted an infinitely small amount, this approximation will work for our purposes.