Financial Toolkit : Transition Matrix

Input
Initial state No of steps No of trials
No of states
One step transition matrix
State 1 2 3 4
1
2
3
4