Main Content

Simulate Markov chain state walks

To start

simulations from state`n`

, use:`k`

X0 = zeros(1,NumStates); X0(

*k*) =*n*;To visualize the data created by

`simulate`

, use`simplot`

.