DPCM simulation
1.Aim
There are two main aims of this project.
• Learn and understand the basic principle of a DPCM encoder and decoder.
• Perform simulations using Maltab.
2. Brief background information
Refer to a book on communications and my lecture notes for detailed information.
3. Your tasks
3.1 Write Matlab functions for the following tasks:-
A. Read data into the matlab command window from an audio data file.
B. Determine the optimal linear predictor for a given order N.
C. Calculate the prediction error.
D. A linear k-bit quantizer for a given k value.
E. A de-quantization function.
F. Write the quantized prediction error to a file.
3.2 Put all these functions together to make an encoder and a decoder.
3.3 Test the encoder and decoder by calculating the mean squared errors between the original signal and the decoded signal. Also play the two signals in matlab. A good system should produce the decoded signal of a good quality.
3.4 Write a graphical user interface that has least the following functions:-
A. Selection of audio files to be processed.
B. Selection of the k value for the quantizer.
C. Selection of prediction order N.
D. Display the mean squared errors.
F. Play the audio signals.
G. Plot the signal and its spectrum.
4. Assessment.
The assessment is based on:-
1) your demonstration of your understanding of the project,
2) The quality of your work -presentation.
3) The codes and your.
4) The report. There should be a brief explanation for each and every step, in addition to the Matlab code required to each step.