1function [alpha,T,PHR]=map2ph(MAPIN)
2% [MAPOUT,A,pi]=map2ph(MAPIN) - Returns a PH distribution
5% MAPIN: a MAP in the form of {D0,D1}
8% alpha: entry probability vector of the PH distribution
9% T: subgenerator of the PH distribution
10% PHR: PH-renewal process with distribution (pi,A) in (D0,D1) notation
14PHR{2}=MAPIN{2}*ones(length(MAPIN{2}),1)*alpha;