markov chain example in matlab