Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Simulate Markov chain state walks

`X = simulate(mc,numSteps)`

`X = simulate(mc,numSteps,'X0',x0)`

To start

simulations from state`n`

, use`k`

X0 = zeros(1,NumStates); X0(

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

`simulate`

, use`simplot`

.

Was this topic helpful?