matthiasm@8: function p = is_stochastic(T) matthiasm@8: % IS_STOCHASTIC Is the argument a stochastic matrix, i.e., the sum over the last dimension is 1. matthiasm@8: % p = is_stochastic(T) matthiasm@8: matthiasm@8: p = approxeq(T, mk_stochastic(T));