MATLAB implementation of EM-algorithm and triangular-to-Cox conversion for phase type distributions. The programs are delivered as is and we can't guarantee the correctness of the algorithms.