Birla Institute of Technology & Science, Pilani, Rajasthan First Semester 2021-2022 Lab-2 (MATLAB) : Signals and Source Encoding

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Birla Institute of Technology & Science, Pilani,

Rajasthan
First Semester 2021-2022
Lab-2 (MATLAB): Signals and Source Encoding
Course: EEE F311 Communication Systems
Instructor-in-Charge: S M Zafaruddin

31-08-2021 TUESDAY (P2, P4:): MATLAB

Instructions
• Create a folder named Lab in your shared folder.

• Create a Lab2 Sub-folder in the Lab folder. This folder will be your working directory.

• Develop .m file corresponding to each task.

• You can start the tasks in any order.

• Once all tasks are done, paste your codes and plots/results/observations/conclusions in a word doc
and upload through a Dropbox file request link. The link will be shared through Slack.

• Best of Luck

Objectives
In this task, the objective is to study signals and source encoding.

MATLAB Task 1
Sync pulses sinc(x) = sinx
x
require minimum bandwidth for signal transmission. Plot sync pulse m(t) =
2Bsinc(2πBt), where B = N + 5 and N is the last digit of your BITS ID.

MATLAB Task 2
−γd
The frequency dependent channel gain of telephone channel is given p as H(f, d) = e , where d is the
distance between Tx-Rx, γ is the propagation constant, and γ = (R(f ) + jωL(f ))(G(f ) + jωC(f )),
where R, L, G, and C are line parameters dependent on frequency ω = 2πf , as appended in the document.
Take the 0.40 mm wire. Use “for loop” to generate channel gain |H(f )| at various lengths 10m to 5000m
in the interval of 500 m. Plot |H(f )| in dB versus distance for frequencies 4KHz, 4MHz, and 4GHz.

1
MATLAB Task 3
Generate Huffman source coding dictionary of your full name using ”huffmandict”. Use huffmanenco and
huffmandeco for encoding and decoding of your full name.

MATLAB Task 4
You listen various tones (dial, ringing, busy) using a telephone. These tones are generated with a com-
bination of sine wave of various frequency. The tone plan is based on ITU-T Standard recommendation.
The dial tone is a continuous tone of the addition of the frequencies 350 and 440 Hz. The ringing tone
comprises frequencies of 440 and 480 Hz and a cadence of 2 seconds ON and 4 seconds OFF. The busy
tone has frequency components of 480 and 620 Hz and a cadence of one half second ON and one half
second OFF. Use this tone plan to generate ringing tone. Use a speaker to listen ringing tone by
applying command sound. While generating the sinewave, mind its amplitude (take 0.1 volt).

Project Task
We have started individual tasks with a bigger picture: to design an end-to-end simulator for a digital
communication system. In this task, we have generated information signals and implemented source
encoding.

You might also like