0% found this document useful (0 votes)
2 views7 pages

Experiment 3 (Properties of Signals)

The document outlines a laboratory experiment focused on analyzing discrete-time signals, specifically their periodicity and fundamental periods. It includes theoretical explanations, examples, and tasks involving mathematical operations on signals using MATLAB. The document also provides detailed procedures for plotting and analyzing various signal operations such as addition, subtraction, multiplication, and finding maximum and minimum values.

Uploaded by

dhwalfqarhsyn32
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views7 pages

Experiment 3 (Properties of Signals)

The document outlines a laboratory experiment focused on analyzing discrete-time signals, specifically their periodicity and fundamental periods. It includes theoretical explanations, examples, and tasks involving mathematical operations on signals using MATLAB. The document also provides detailed procedures for plotting and analyzing various signal operations such as addition, subtraction, multiplication, and finding maximum and minimum values.

Uploaded by

dhwalfqarhsyn32
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Signals and Systems LAB (SGSY257) 2nd year,2nd semester

Properties of Signals Prepared by Dr. Yasmine M. Tabra


Dr. Mohammed H. Ali

Experiment No. 3
Properties of Signals

Aim:
• Investigate and analyze discrete-time signals to determine their periodicity and, if they
are periodic, to identify their fundamental periods.
• Perform mathematical operations on signals (addition, subtraction, multiplication, and
division) and observe their effects.

Theory:
In discrete-time signal analysis, determining the periodicity of a signal and identifying its
fundamental period are essential tasks. A discrete-time signal 𝑥 [n ] is defined as periodic if
there exists a positive integer 𝑁 such that:
𝑥 [n +N]= 𝑥[ n] ∀n.
The smallest positive value of N for the signal is referred to as the fundamental period of
the signal. If no such N exists, the signal is considered non-periodic.

For a sinusoidal signal,


𝑥 [n]= sin(𝑤𝑜 𝑛 + 𝜑) = sin(𝑤𝑜 (𝑛 + 𝑁) + 𝜑), is periodic if and only if the normalized
frequency 𝑤𝑜 is a rational multiple of π.
Using the identity sin(A+2π) =sin(A), this condition simplifies to:

𝑤𝑜 𝑁 =2πk, for some integer k


2πk
Which means 𝑤𝑜 =
𝑁

2𝜋𝑀
Specifically, 𝑤𝑜 = , where M and 𝑁 are integers with no common factors other than
𝑁
1.

1
Signals and Systems LAB (SGSY257) 2nd year,2nd semester
Properties of Signals Prepared by Dr. Yasmine M. Tabra
Dr. Mohammed H. Ali

Example: Analyze the discrete-time signal


2𝜋𝑀𝑛
𝑥1 [𝑛] = sin ( )
𝑁
with N =12 and M taking values 4, 5, 7, and 10, plot each signal over the interval
0 ≤ n ≤ 2N −1. and determine their fundamental periods.

A discrete-time sinusoid is periodic if there exists a positive integer, 𝑁𝑜 such that:


𝑥1 [𝑛] = 𝑥1 [𝑛 + 𝑁𝑜 ]

2𝜋𝑀
Normalized frequency 𝑤𝑜 =
𝑁

2𝜋𝑘 2𝜋𝑀
𝑤𝑜 𝑁𝑜 =2πk , 𝑁𝑜 = , substituting 𝑤𝑜 =
𝑤𝑜 𝑁
2𝜋𝑘 𝑁𝑘
𝑁𝑜 = 2𝜋𝑀 = ,
𝑀
𝑁
𝑁
Since 𝑁𝑜 must be the smallest positive integer, so set k =1. If 𝑁𝑜 = is an integer, it
𝑀
represents the fundamental period. If not, the signal is non- periodic.

Calculations for Each M:


12
M = 4, 𝑁𝑜 = = 3 , (periodic with fundamental period 3) and so on. The outputs should
4
be as shown in the figure below.

2
Signals and Systems LAB (SGSY257) 2nd year,2nd semester
Properties of Signals Prepared by Dr. Yasmine M. Tabra
Dr. Mohammed H. Ali

All signals are periodic since every M yields a limited 𝑁𝑜 .

Now consider the following signals:


2𝑛 3𝑛
𝑥2 [𝑛] = 2 cos ( ) + cos ( )
𝑁 𝑁
2𝜋𝑛 5𝜋𝑛
𝑥3 [𝑛] = cos ( ) + 3 sin ( )
𝑁 2𝑁

• Assume N = 6 for each signal. Determine whether each signal periodic. If a signal is
periodic, plot the signal for two periods, starting at n = 0.
• Plot the signal for 0 ≤ n ≤ 7N and explain why it is periodic or not.
• Remember to use stem and to appropriately label your axes.

By comparing, we identify the frequencies of 𝑥2 [𝑛]:


2𝑛 2 2 1
First term 2 cos ( ) , 𝑤1 = = =
𝑁 𝑁 6 3
3𝑛 3 3 1
Second term 2 cos ( ) , 𝑤2 = = =
𝑁 𝑁 6 2
A discrete-time signal is periodic if there exists a smallest positive integer M
1 1
𝑀 = 𝑘1 ,and 𝑀 = 𝑘2
3 2

We take the Least Common Multiple (LCM) of the denominators 3 and 2, which is 6.
𝑥2 [𝑛] is periodic with fundamental period 6.

3
Signals and Systems LAB (SGSY257) 2nd year,2nd semester
Properties of Signals Prepared by Dr. Yasmine M. Tabra
Dr. Mohammed H. Ali

Tasks:
- Repeat x1 with M=12,20. If periodic find the fundamental period.
- Repeat x1 with N=6 for M=4,5. If periodic find the fundamental period
- Repeat
3𝑛 5𝑛
𝑥2[𝑛] = 2 cos ( ) + cos ( )
𝑁 𝑁
- Repeat x3 for N=4;

Operations on Signals
1. Addition & Subtraction
Signals can be added and subtracted on condition which is that they be of the same length
when defined in MATLAB in order to add or subtract the adjacent elements or values of the
signals.
In MATLAB, when you add or subtract signals (which are typically represented as vectors or
arrays), they must be the same length. MATLAB performs these operations element-wise,
meaning that the first element of one signal is added to the first element of the other, the
second element to the second, and so on. If the signals have different lengths, MATLAB will
return an error because it cannot match elements properly.
Example: For the following two signals
𝑋1 (𝑛) = (0.5)𝑛 − 10 ≤ 𝑛 ≤ 10
𝑋2 (𝑛) = (0.8)𝑛 − 10 ≤ 𝑛 ≤ 10
Using subplot to stem 𝑋1 , 𝑋2 , 𝑋1 + 𝑋2 , 𝑋1 − 𝑋2 .
Procedure:
1. Defined variable n from -10 to 10.
2. signal Definitions:
X1 = (0.5). ^n; calculates ( 0.5 )^n for each element in n.
X2 = (0.8). ^n;; calculates ( 0.8 )^n similarly.
Subplots:
The first subplot shows 𝑋1 (𝑛)
The second subplot shows 𝑋2 (𝑛)
The third subplot shows the element-wise sum 𝑋1 (𝑛) + 𝑋2 (𝑛)
The fourth subplot shows the element-wise difference 𝑋1 (𝑛) − 𝑋2 (𝑛)

4
Signals and Systems LAB (SGSY257) 2nd year,2nd semester
Properties of Signals Prepared by Dr. Yasmine M. Tabra
Dr. Mohammed H. Ali

2. Multiplication & Division


In MATLAB, you can only multiply or divide two signals if they have the same length. Be
sure to avoid dividing by zero when performing element-wise operations. Also, remember to
use the dot operator (e.g., `.*` or `./`) for element-wise multiplication or division, especially
since our signals will generally be stored as horizontal vectors.
Example: For the following two signals
𝑋3 (𝑛) = (0.6)𝑛 − 10 ≤ 𝑛 ≤ 10
𝑋4 (𝑛) = (0.2)𝑛 − 10 ≤ 𝑛 ≤ 10
Using subplot to stem 𝑋3 , 𝑋4 , 𝑋3 ∗ 𝑋4 , 𝑋3 /𝑋4 .
Procedure:
1. Defined variable n from -10 to 10.
2. signal Definitions:
X3= (0.6). ^n; calculates ( 0.6 )^n for each element in n.
X4 = (0.2). ^n;; calculates ( 0.2 )^n similarly.
Subplots:
The first subplot shows 𝑋3 (𝑛)
The second subplot shows 𝑋4 (𝑛)
The third subplot shows the element-wise sum 𝑋3 (𝑛) ∗ 𝑋4 (𝑛)
The fourth subplot shows the element-wise difference 𝑋3 (𝑛)/𝑋4 (𝑛)
5
Signals and Systems LAB (SGSY257) 2nd year,2nd semester
Properties of Signals Prepared by Dr. Yasmine M. Tabra
Dr. Mohammed H. Ali

3. Maximum & Minimum

You can determine the minimum and maximum values of any signal using the min and
max functions in MATLAB.
Example: For the following signal

𝑛
𝑋5 (𝑛) = 𝑐𝑜𝑠 (𝑝𝑖 ∗ ) − 20 ≤ 𝑛 ≤ 20
4
a) Find the maximum value and minimum values in X5 (n).
b) Use ‘find’ command to locate all indexes of the max and min values.
c) First stem X5 (n) then stem max and min according to their indexes.

Procedure:
1. Define the range of n from -20 to 20.
𝑛
2. Compute the signal 𝑋5 (𝑛) = 𝑐𝑜𝑠 (𝑝𝑖 ∗ )
4
3. Find the maximum and minimum values using max() and min().
4. Find their indices using the find() command.
5. Plot the signal using stem(), and:
• Highlight the max values in red.
• Highlight the min values in green.

6
Signals and Systems LAB (SGSY257) 2nd year,2nd semester
Properties of Signals Prepared by Dr. Yasmine M. Tabra
Dr. Mohammed H. Ali

Task1:
Consider the two signals:
𝑋1 (𝑛) = 𝑒 0.2𝑛 − 10 ≤ 𝑛 ≤ 10
𝜋𝑛
𝑋2 (𝑛) = sin ( ) − 10 ≤ 𝑛 ≤ 10
4
Plot 𝑥1 (n) and 𝑥2 (n)
Compute and plot 𝑥1 (n) + 𝑥2 (n)
Compute and plot 𝑥1 (n) * 𝑥2 (n)
Use subplot to display all four plots in one figure.

Task2:
Given the signal 𝑋3 (𝑛) = 0.7𝑛 0 ≤ 𝑛 ≤ 10
Plot 𝑥3 (n)
Compute and plot the time-reversed signal 𝑥3 (-n)
Compute and plot 𝑥3 (n) + 𝑥3 (-n)
Use subplot to display all four plots in one figure.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy