Professional Documents
Culture Documents
Lab 5
Lab 5
Signals in MATLAB
UNIT STEP SEQUENCE
UNIT IMPULSE SEQUENCE
& EXPONENTIAL SEQUENCE
𝛿 [ 𝑛 ]= {
1𝑛=0
0 𝑛≠ 0
SINUSOIDAL SEQUENCE
& DISCRETE SEQUENCES
• Sinusoidal:
• Discrete:
EVEN & ODD SIGNAL
REPRESENTATION
A signal is even if Xe(t) = Xe(-t).
e.g. cos (wt) = cos(-wt)
Any signal can be expressed as the sum of even & odd part.
i.e. X(t)= Xe(t) + Xo(t) … eq(1)
2. Create a sinusoidal signal 𝑥(𝑛) = sin(2 ∗ 𝑝𝑖 ∗ 0.01 ∗ 𝑛). Create a function which
returns the plots for even and odd part of this signal. Call this function in script file
and get the desired plots.
3. Plot the given signal and compute the even and odd parts for this signal.