Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

WRITE MATLAB CODES SEPARATELY PLEASE 1. In a communication system, all message signals and their frequency values are given in the table below. Please generate

WRITE MATLAB CODES SEPARATELY PLEASE

image text in transcribed

1. In a communication system, all message signals and their frequency values are given in the table below. Please generate Huffman code for these message signals and calculate the entropy of this communication scheme. Message X1 X2 X3 X4 X5 X6 X7 Frequency 35 20 15 10 8 7 5 2. X1 and X2 are two Gaussian distributed random variables. It is known that, X1 has a mean value of zero and variance of 2 (u = 0; o = 2) also X2 has a mean value of 2 and variance of 3 (uz 2; o = 3). a) Please write the probability density functions(pdf) of these variables. b) Please plot these pdf's using MATLAB. c) Please create a histogram for these two Gaussian variables using MATLAB. (i.e. generating adequately large number of samples for these distributions and displaying them on a graph) 3. (All of these implementations should be conducted in MATLAB) A sinusoidal message signal with an amplitude of 1 and period of 4 is given. a) Please sample the message signal with flat-top sampling and create a flat-top PAM signal, utilizing a sampling frequency of fq=2 Hz and holding duration of r=0.2 seconds. Please plot the modulated signal. Please plot the frequency spectrum of original signal and the modulated signal. b) Please create a PDM signal utilizing a sawtooth referance with an amplitude of 1.5 and frequency of 2 Hz. Please plot the time domain and frequency spectrum of the PDM signal(You can use any technique). c) Please create a PPM signal by utilizing your previously created PDM signal. PPM signals should be created as negative edge triggered (i.e. when the PDM drops to zero, a PPM pulse generated). Use a hold duration of t=0.2 seconds. d) Please create a Delta modulated signal with a frequency of 10 and a step size of 0.15 and plot DM signal and quantization noise in the time domain.(i.e. DM signal should change its value for each 0.1 seconds and the amount of change should be 0.15) 1. In a communication system, all message signals and their frequency values are given in the table below. Please generate Huffman code for these message signals and calculate the entropy of this communication scheme. Message X1 X2 X3 X4 X5 X6 X7 Frequency 35 20 15 10 8 7 5 2. X1 and X2 are two Gaussian distributed random variables. It is known that, X1 has a mean value of zero and variance of 2 (u = 0; o = 2) also X2 has a mean value of 2 and variance of 3 (uz 2; o = 3). a) Please write the probability density functions(pdf) of these variables. b) Please plot these pdf's using MATLAB. c) Please create a histogram for these two Gaussian variables using MATLAB. (i.e. generating adequately large number of samples for these distributions and displaying them on a graph) 3. (All of these implementations should be conducted in MATLAB) A sinusoidal message signal with an amplitude of 1 and period of 4 is given. a) Please sample the message signal with flat-top sampling and create a flat-top PAM signal, utilizing a sampling frequency of fq=2 Hz and holding duration of r=0.2 seconds. Please plot the modulated signal. Please plot the frequency spectrum of original signal and the modulated signal. b) Please create a PDM signal utilizing a sawtooth referance with an amplitude of 1.5 and frequency of 2 Hz. Please plot the time domain and frequency spectrum of the PDM signal(You can use any technique). c) Please create a PPM signal by utilizing your previously created PDM signal. PPM signals should be created as negative edge triggered (i.e. when the PDM drops to zero, a PPM pulse generated). Use a hold duration of t=0.2 seconds. d) Please create a Delta modulated signal with a frequency of 10 and a step size of 0.15 and plot DM signal and quantization noise in the time domain.(i.e. DM signal should change its value for each 0.1 seconds and the amount of change should be 0.15)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting For Inventory

Authors: Steven M. Bragg

1st Edition

1938910222, 9781938910227

More Books

Students also viewed these Accounting questions

Question

How to measure Financial Asset?

Answered: 1 week ago