Extracting Output From A Markov Chain Simulation?

1 vue (au cours des 30 derniers jours)
Micah
Micah le 13 Déc 2022
Commenté : Sai le 28 Déc 2022
A school project requires me to write a program capable of recieving rudimentary data for two different baseball teams, and simulate a game with that data using discrete-time Markov chains for each potential state of the game. The data provided is simply the number of plate appearances, hits, outs, singles, doubles, etc. achieved by each team within a certain time frame (provided in attatchments). So far, I have successfully created a Markov chain (using the dtmc() method) that can simulate an inning (using the simulate() method), using the given data to imitate players at bat, and what base each player reaches, if any. However, the Markov chain is only capable of evaluating the positions of the players on the bases, and cannot recognize when an actual run should have been earned, meaning I cannot keep score. Very inexperienced with MATLAB, and have been scouring the site to figure out how to generate output from a Markov chain to no avail.
Due to the nature of the code, including any here would essentially require me to upload the entire project, which, while not massive, I'd rather not do unless explicitly requested. Thank you in advance.
  1 commentaire
Sai
Sai le 28 Déc 2022
The function subchain may help you. Refer to below documentation

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur App Building dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by