Theory of Information and Codes (2nd cycle) Website
Here are shown the various code snippets I did during the course at the university.
They are provided with a CC BY-NC license.
Feel free to use them.
Alex Pacini
A Matlab/ Octave function that, given the transition matrix P and the probability vector for the input symbols Px, returns the mutual information I(X;Y). It is provided with some tests that show the mutual information for some channels with different sets of P and Px and outputs the 3D surface plots.
A Matlab/ Octave script to plot a comparison for the capacity of the Antipodal unquantized channel, the AWGN unquantized channel and the Antipodal 2-Level quantized channel.
There is also a function for calculating the definite numerical integrals with different algorithms.
A Matlab/ Octave script to simulate a noisy antipodal 2 level transmission.
A Matlab/ Octave script that simulates an antipodal 2-level transmission over an AWGN channel using the Hamming block code.