Pulse code Modulation

PCM on a sine wave and a .wav file for demonstration of various processes done during PCM.

You are now following this Submission

Two codes: First one demonstrates PCM on a sine wave. To verify this code, second one uses the same code to perform PCM on a .wav file.
Performs sampling, quantizing, encoding, and decoding in first code.
In the 2nd code, u can play the original and decoded(after PCM) .wav file and compare quality, distortion etc for various n-bit values and sampling frequency.

Cite As

Aditya (2026). Pulse code Modulation (https://nl.mathworks.com/matlabcentral/fileexchange/38614-pulse-code-modulation), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0