Easy solutions of Bayesian problem solving using matlab