pls help in writing a code for random movements of a point on x-y plane

13 views (last 30 days)
Write a code showing random movements of a point on x-y plane. The initial position of the point is [x y] = [0 0]. The step size of the random displacements is eps <= 1. Calculate the radial displacement of the point, Delta r = sqrt(x^2+y^2), and show that the histogram of Delta r follows the Gaussian distribution (hint: use the functions of "hist" and "bar").
i am a beginner in matlab and unable to write a code for this. pls help and guide. thanks in advance.

Answers (1)

Walter Roberson
Walter Roberson on 2 Nov 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!