Skip to content

Instantly share code, notes, and snippets.

@Piyush3dB
Piyush3dB / BlahutArimoto.m
Created June 30, 2015 14:03
Blahut-Arimoto algorithm implementation in Matlab
function [C r] = BlahutArimoto(p)
disp('BlahutArimoto')
% Capacity of discrete memoryless channel
% Blahut-Arimoto algorithm
% Input
% p: m x n matrix
% p is the transition matrix for a channel with m inputs and n outputs