Homework 3 Sol PDF
Homework 3 Sol PDF
Homework 3 Sol PDF
Please submit ONE soft copy (pdf only) of your assignment to Canvas (Assignments)
before the deadline. NO LATE Submission! (Zero mark!)
2
amplitude
-2
-4
-6
-8
1 of 4
The suggested sampling rate should be greater than 320 Hz. (e.g. 330 Hz)
d)
𝑠𝑎𝑚𝑝𝑙𝑒𝑠
1.5 320 𝐻𝑧 480 𝐻𝑧 𝑜𝑟 480
𝑠𝑒𝑐𝑜𝑛𝑑
In 2 seconds, we have:
2. [7] Using a 3-bit uniform quantization on the signal amplitude from -10 to 10 inclusively.
8
X: 14.2
Y: 8.582
6
X: 3.1
4
Y: 5.612
2 X: 26.9
amplitude
Y: 3.288
0
X: 46.2
Y: -2.518
X:-2
15.9
Y: -1.059
-4
-6 X: 85.6
Y: -7.959
-8
b) and c)
Samples values Binary sequence Quantization Error
5.612 110 |6.25 5.612| 0.638
8.582 111 |8.582 8.75| 0.168
-1.059 011 | 1.059 1.25| 0.191
3.288 101 |3.288 3.75| 0.462
-2.518 010 | 2.518 3.75| 1.232
-7.959 000 | 7.959 8.75| 0.791
3. [3] Assume we have a course with 290 students and to each student we assign a grade
between A to F. The number of students obtaining each grade is shown in the figure
below:
180
158
160
140
Number of student
120
100
80
80
60 48
40
20
3 1
0
A B C D F
Grade
Find the minimum amount of bits required to record the grade of all the students.
Solution:
Find the average bit/student:
80 290 158 290 48 290 3 290 1
log log log log log 290
290 80 290 158 290 48 290 3 290
= 1.5156 bits/student
For all the students (290):
290 1.516 439.6 𝑏𝑖𝑡𝑠
a) 0.5 log 0.2 log 0.05 log 0.1 log 0.15 log
. . . . .
1.9232 𝑏𝑖𝑡/𝑠𝑦𝑚𝑏𝑜𝑙
/
then 𝑆𝑁𝑅 10 1.9953 ~ 2
.
3.8464 b/s BW log 1 2 𝐵𝑊 1.5850 ; 𝐵𝑊 2.4268 𝐻𝑧
.
4 of 4