Markov Chain Monte Carlo Simulation Matlab Code