How to ignore Remote-Reachable States while using the hittime command in Econometrics Toolbox?

4 views (last 30 days)
Using the hittime command from the Econometrics Toolbox gives Inf. hitting times for Remote-Reachable States. How can you ignore Remote-Reachable States to get a finite hitting time? Thank you!
Code:
A=[1 0 0 0; 1/2 0 1/2 0; 0 1/2 0 1/2; 0 0 0 1];
mc=dtmc(A);
ht=hittime(mc,4)
The output: ht =
Inf
Inf
Inf
0
The desired output: ht =
Inf
2
2
0

Answers (0)

Categories

Find more on Econometrics Toolbox in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!