pls help in writing a code for random movements of a point on x-y plane
13 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
See Also
Categories
Find more on Histograms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!