This set of scripts computes mutual and interaction information using the compiled routine by Peng
https://nl.mathworks.com/matlabcentral/fileexchange/14888-mutual-information-computation.
Unzip the folder and add it to the path.
If the cpp files do not work on your matlab, recompile the m files.