Please provide the matlab codes file. https://www.dropbox.com/s/2lm3mabpfpxcqxk/
ID: 644218 • Letter: P
Question
Please provide the matlab codes file.
https://www.dropbox.com/s/2lm3mabpfpxcqxk/Digits.zip?dl=0
Question 2 (60 points) : The digits in the file ?Digits. Mat? are to be sent over a coin- munication link. We will perform Huffman coding for the content of the file and we will see if we accomplish any compression. You might find Matlab helpful for all the parts of the question.. (a) (15 Points) Calculate the information for each digit. (b) (5 Points) Calculate the entropy for the digits. Compare this to the case of using fixed length coding for the digits. (c) (15 Points) Develop Huffman coding for the digits. (d) (5 Points) Compute the expected length of bits for the code developed. How different is it from the entropy? Comment! (e) (10 Points) Then write a Matlab function to encode the digits. How many bits did you use on average for a digit?? Compare with entropy and the expected length of the bits calculated in part (d). (f) (10 Points) Write a Matlab function to decode the encoded message and ensure that you get the original file content. Comment!Explanation / Answer
Represent Partitions
Scalar quantization is a process that maps all inputs within a specified range to a common value. This process maps inputs in a different range of values to a different common value. In effect, scalar quantization digitizes an analog signal. Two parameters determine a quantization: a partition and a codebook.
A quantization partition defines several contiguous, nonoverlapping ranges of values within the set of real numbers. To specify a partition in the MATLAB
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.