Previous Up Next

9.4.24 Markov chains: markov

The markov command finds characteristic features of a Markov chain.


Example.
Input:

markov([[0,0,1/2,0,1/2],[0,0,1,0,0],[1/4,1/4,0,1/4,1/4],[0,0,1/2,0,1/2],[0,0,0,0,1]])

Output:

⎡
⎣
4
⎤
⎦
,⎡
⎣
00001
⎤
⎦
,⎡
⎣
3120
⎤
⎦
,⎡
⎢
⎢
⎢
⎢
⎢
⎣
1
1
1
1
1
⎤
⎥
⎥
⎥
⎥
⎥
⎦

Previous Up Next