Loops in Matlab to solve a random walk problem

235 Views Asked by At

The matlab exercise states "Suppose now that you are playing the game with 100 coins (50 coins for each player to start) with a loaded dice such that the probability that the dice rolls to an even number is 0.53 instead of 0.5. (Recall you gain a coin on an even roll.) Write a for loop to create the transition matrix P and store this matrix as OneEmat" .

What is the loop supposed to to? How should I start the loop? How do I get a loop to create a matrix?

Any hints would be appreciated as I am quite loss on how to begin.