MATLAP the random walk

profileessam123456

 

Create the Random Walker toy that tracks the movement of n balls as they move through the toy. As the balls fall down the toy, they can move to either the right or left of each peg. There are total of 15 levels with 16 columns to capture each of the balls.

Using a combination of functions, loops, and vectors to create the Random Walker toy. Create a figure that includes all of the pegs, and shows each ball individually dropping through the pegs (Hint use the drawnow command). At the bottom, show the balls colleting in columns. Increase the number of balls. How does this change the distribution?

below you will find the file that has the explanation of this assignment, also there is an example of this assignment in the pics below.

  • 8 years ago
  • 50
Answer(0)