(New page: == Sampling of CT Signal to Yield a DT Signal == Periodic Signal sampled to become Non-Periodic: Periodic Signal sampled to remain Periodic: == Creation of a Periodic Signal from a No...) |
(→Creation of a Periodic Signal from a Non-Periodic Signal) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
Periodic Signal sampled to become Non-Periodic: | Periodic Signal sampled to become Non-Periodic: | ||
+ | [[Image:Non Periodic Tri_ECE301Fall2008mboutin.jpg]] | ||
+ | |||
+ | Matlab Code: | ||
+ | <pre> | ||
+ | clc | ||
+ | clear all | ||
+ | t = 0:2:4*pi; | ||
+ | x = sawtooth(t,.5); | ||
+ | stem(t,x) | ||
+ | </pre> | ||
Periodic Signal sampled to remain Periodic: | Periodic Signal sampled to remain Periodic: | ||
+ | [[Image:still periodic tri_ECE301Fall2008mboutin.jpg]] | ||
+ | |||
+ | Matlab Code: | ||
+ | <pre> | ||
+ | clc | ||
+ | clear all | ||
+ | t = 0:pi/50:4*pi; | ||
+ | x = sawtooth(t,.5); | ||
+ | stem(t,x) | ||
+ | </pre> | ||
== Creation of a Periodic Signal from a Non-Periodic Signal == | == Creation of a Periodic Signal from a Non-Periodic Signal == | ||
+ | |||
+ | The signal used to obtain this graph was <math>\ x(t) = e^{t}</math> | ||
+ | |||
+ | [[Image:Period exponential_ECE301Fall2008mboutin.jpg]] | ||
+ | |||
+ | Here is the Matlab code to generate the graph: | ||
+ | |||
+ | <pre> | ||
+ | t = [0:.001:10]; | ||
+ | x = exp(t); | ||
+ | for n = 1:1:2 | ||
+ | t = [t t + n*10]; | ||
+ | x = [x x]; | ||
+ | end | ||
+ | |||
+ | plot(t,x); | ||
+ | </pre> |
Latest revision as of 12:28, 12 September 2008
Sampling of CT Signal to Yield a DT Signal
Periodic Signal sampled to become Non-Periodic:
Matlab Code:
clc clear all t = 0:2:4*pi; x = sawtooth(t,.5); stem(t,x)
Periodic Signal sampled to remain Periodic:
Matlab Code:
clc clear all t = 0:pi/50:4*pi; x = sawtooth(t,.5); stem(t,x)
Creation of a Periodic Signal from a Non-Periodic Signal
The signal used to obtain this graph was $ \ x(t) = e^{t} $
Here is the Matlab code to generate the graph:
t = [0:.001:10]; x = exp(t); for n = 1:1:2 t = [t t + n*10]; x = [x x]; end plot(t,x);