Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum > General > > "Counting no. of times state chosen in markov ch..."

Post Reply:
Name:
Email Address:

Please send email when my message is replied to.

Url (optional):
Subject:
Message: view original message?
Attachment (optional):
Please answer this:2+4 =



Original Message (ID '273955') By Bill Simpson:
If you can get your Markov data into a list then perhaps you can use this: In[1]:= markovdata={2,1,1,1,3,2,1,2,2,3}; Map[{First[#],Length[#]}&,Split[Sort[markovdata]]] Out[2]= {{1,4},{2,4},{3,2}} That shows that 1 appeared 4 times 2 appeared 4 times 3 appeared 2 times