title: Time series in Finite State Space Markov chain
body: <p>I have state transition probability matrix for state K=8,</p>
  
  <p>trans =</p>
  
  <pre><code>0.9245    0.0755         0         0         0         0         0         0
  0.0176    0.9399    0.0425         0         0         0         0         0
       0    0.0290    0.9263    0.0447         0         0         0         0
       0         0    0.0465    0.9228    0.0307         0         0         0
       0         0         0    0.0731    0.8979    0.0290         0         0
       0         0         0         0    0.0907    0.8857    0.0236         0
       0         0         0         0         0    0.1080    0.8750    0.0170
       0         0         0         0         0         0    0.1250    0.8750
  </code></pre>
  
  <p>I need to generate time vector/time series from the transition matrix using Matlab. Can anyone suggest me on how to generate the time series from this state transition probability matrix in Matlab. </p>