University of Minnesota Duluth Engineering Faculty Electrical

University of Minnesota Duluth
Engineering Faculty
Electrical & Computer Department
Linear Systems and Signal Analysis
Dr. Imran Hayee
Course # 2111
Experiment No. (1)
Title:
Representation and manipulation of basic signals in MATLAB
Name of Student: Daniel Bernard
Student ID Number: 41210435
Due Date: 02/02/2012
Points:______________________
1. Statement of the Problem
2. Results
a. Results from 2-6
Asqr
37
45
36
39
66
75
60
57
52
BA
78
60
66
56
52
91
49
67
88
AB
43
47
74
102
79
82
8
15
5
Sum
7
8
10
65
73
106
13
5
16
iSum
0.142077 0.032787 -0.12568
-0.39162 0.114754 0.282332
0.200364 -0.08197 -0.07468
b. Plots from 7-12 and explanation
7 a.
7 b.
Plot of 𝑦 = sin(𝑑) , 0 ≀ 𝑑 ≀ 10
Plot of 𝑋 = 𝑒 (βˆ’2𝑑) , 𝑍 = 𝑒 (βˆ’0.2𝑑) , 𝑄 =
𝑒 (βˆ’2𝑑) , {0 < 𝑑 < 10}, 0.3 𝑠𝑑𝑒𝑝
9 a.
9 b.
Plot showing both real and imaginary parts
of graph. Phase expressed in radians.
Plot showing both real and imaginary parts
of graph. Phase expressed in degrees.
10.
𝑦1 = π‘₯1 +π‘₯2 ; 𝑦2 = π‘₯1 βˆ’π‘₯2 ; 𝑦3 = π‘₯1 βˆ— π‘₯2 ; 𝑦4 = π‘₯1 /π‘₯2 ; 𝑦1 = 2π‘₯1 ; 𝑦6 = π‘₯1 3
11 a.
11 b.
Discrete time signal π‘₯[𝑛] = 2𝑛, {βˆ’3 ≀ 𝑛 ≀ 3}
Discrete time signal π‘₯[𝑛] = 2𝑛, {βˆ’3 ≀ 𝑛 ≀ 3}
Plotted over {βˆ’5 ≀ 𝑑 ≀ 5}
11 c.
12.
Discrete time signal π‘₯[𝑛] = 2𝑛, {βˆ’3 ≀ 𝑛 ≀ 3}
Plotted over {βˆ’50 ≀ 𝑑 ≀ 50}
Discrete sequence 𝑔[𝑛] = 𝐴(π‘Žπ‘› ), {𝐴 = 10, π‘Ž =
βˆ’0.9}, {βˆ’10 ≀ 𝑛 ≀ 10}
c. Questions 8 & 9
8. Warning: Imaginary parts of complex X and/or Y arguments ignored
We separated the plots into real and imaginary parts, and graphed phase and
magnitude of the system.
9. Phase of y changes from radians to degrees
d. Results from Control Flow
If-statement: π‘ π‘‘π‘Ÿ = π‘›π‘’π‘”π‘Žπ‘‘π‘–π‘£π‘’
While statement: π‘₯ = 0
For-loop: π‘₯ = 10
Break-statement: π‘₯ = βˆ’2
3. Exercises
1. B
2. B
3. C&A
4. B
5. C
4. Conclusion
The lab gave us an understanding of MATLAB and how we can synthesize discrete and
continuous time signals, which can be applied to our later units.