Question: Could you please use MATLAB to solve this? Consider a particle in a room. How likely is the particle to hit the east wall of
Could you please use MATLAB to solve this?

Consider a particle in a room. How likely is the particle to hit the east wall of the room? Assume the western wall repels the particles and there is no vertical motion. The position at a subsequent time is related to the current position by x^n + 1 = x^n + f(x^n) + Noise where f(x) = k/x^2, so that the force away from the western wall at x = 0 is proportional to the inverse of the distance squared. The noise is given by epsilon times a random number between minus one and one. The eastern wall is taken to be at x = 5 and the constant of proportionality for the repulsive force is k = 0.5, with a noise amplitude of 1. Run at least 200 experiments and determine how many runs it took to reach the eastern wall. Plot the results
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
