Karpelevich Theorem and the positive realization of matrices