Question: Using Matlab P3: Simulate Brownian Motion (is the random number of motion particles suspended in liquid or gas resulting from their collision with the atoms)

Using Matlab

P3: Simulate Brownian Motion (is the random number of motion particles suspended in liquid or gas resulting from their collision with the atoms)

a. Make a 10,000 vector of zeros

b. Write a loop to keep track of the position of the particle(n=2:10,000)

c. If the random number is less than 0.5 move left, otherwise go right.

d. Store each new position in the vector

e. Plot a 50 bin histogram (help hist)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!