Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose a particle is at the origin at time t=0. Consider the particle motion where it may move to the right with probability of 50%

image text in transcribed

Suppose a particle is at the origin at time t=0. Consider the particle motion where it may move to the right with probability of 50% and to the left with a probability 50%. For time t, the random walk, x(t), may be described as the sequence x(0) = 0 x(t + 1) = x(t) 1 where movement at each step {-1, +1 is a random displacement to the left or right, respectively. For example, a random walk of 10 steps with x(0) 0 may be described using the sequence x = {0:-1; 0; 1; 2; 1; 2; 3; 4; 3; 2} a. Write a program in Matlab that simulates the particle trajectory using a random walk. For a specified t value (integer-valued), your program can either store the particle loca tion or the corresponding sequence of left/right steps and constructing the particle position at a later date (the second option has lower memory requirement) b. Plot 50 trajectories of 100 steps against time where time is on the x-axis and position, x(t), is on the y-axis. c. Calculate and plot the average position, (x(t)), at each time t of the 50 particles (initial value) Suppose a particle is at the origin at time t=0. Consider the particle motion where it may move to the right with probability of 50% and to the left with a probability 50%. For time t, the random walk, x(t), may be described as the sequence x(0) = 0 x(t + 1) = x(t) 1 where movement at each step {-1, +1 is a random displacement to the left or right, respectively. For example, a random walk of 10 steps with x(0) 0 may be described using the sequence x = {0:-1; 0; 1; 2; 1; 2; 3; 4; 3; 2} a. Write a program in Matlab that simulates the particle trajectory using a random walk. For a specified t value (integer-valued), your program can either store the particle loca tion or the corresponding sequence of left/right steps and constructing the particle position at a later date (the second option has lower memory requirement) b. Plot 50 trajectories of 100 steps against time where time is on the x-axis and position, x(t), is on the y-axis. c. Calculate and plot the average position, (x(t)), at each time t of the 50 particles (initial value)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

6. How do histories influence the process of identity formation?

Answered: 1 week ago