Create Transition probability matrix
Afficher commentaires plus anciens
Hello,
I have X1(1:n,1) and X2(1:n,1) two datas. how can I generate matrix transition probability matrix of these two datas. can you help me?
2 commentaires
Walter Roberson
le 14 Mar 2014
What is the relationship between the two? For example does X1(K) contain a starting node number and X2(K) contains the corresponding ending node number and you want to find the statistics of starting at X1(K) and ending at X2(K) (assuming that there might be repetitions and that for any given node X1(K) the destination node X2(K) will not necessarily always be the same) ?
Hanane
le 14 Mar 2014
Réponses (1)
Matt J
le 14 Mar 2014
Hint:
accumarray([X1,X2],something)
Catégories
En savoir plus sur Markov Chain Models 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!