Simulate Continuous-Time Markov Chains

This code can be used to simulate continuous-time Markov chains

You are now following this Submission

There are two functions: (1) simCTMC.m is used to simulate jump times and the corresponding states that are jumped to, given a Q-matrix and a desired number of periods. (2) simCTMC_t.m uses the output of simCTMC.m to generate a time series simulation for the states.

Cite As

Dana (2026). Simulate Continuous-Time Markov Chains (https://ch.mathworks.com/matlabcentral/fileexchange/79649-simulate-continuous-time-markov-chains), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.2

Added some additional input verification

1.0.1

Can now set T=Inf to simulate until an absorbing state is reached. Other minor improvements also made.

1.0.0