結果 : how to calculate state transition matrix in matlab