how to generate first order markov chain number sequence in matlab

Suppose I have a sequence x=[5 6 1 6 4 1 2 4 6 6 1 6 6 3 5 1 3 6 5 6 4 1 6 6 5 5 5 3 4 2]. I want to generate markov chain from this sequence. I saw there are markov chain text generator for which input is word paragraph and it genrates markov chain. I want to generate first order markov chain number sequence with x as input. how to do this.

Réponses (0)

Catégories

En savoir plus sur Logistics and Supply Chain dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by