https://www.mathworks.com/help/econ/dtmc.html
dtmc - Create discrete-time Markov chain - MATLAB
dtmc creates a discrete-time, finite-state, time-homogeneous Markov chain from a specified state transition matrix.
discrete time markov chaindtmccreatematlab